Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
bad236c9
Commit
bad236c9
authored
Sep 18, 2017
by
Aleksi Suomalainen
Committed by
GitHub
Sep 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #50 from neochapay/tabstyle
Add TabViewStyle
parents
21e4efa0
da51984d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
1 deletion
+39
-1
TabViewStyle.qml
src/styles/TabViewStyle.qml
+39
-1
No files found.
src/styles/TabViewStyle.qml
View file @
bad236c9
/*
* Copyright (C) 2013 Andrea Bernabei <and.bernabei@gmail.com>
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
...
...
@@ -18,8 +19,45 @@
*/
import
QtQuick
2.6
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
TabViewStyle
{
TabViewStyle
{
tabsAlignment
:
Qt
.
AlignVCenter
tabOverlap
:
0
frame
:
Item
{
}
tab
:
Item
{
implicitWidth
:
control
.
width
/
control
.
count
implicitHeight
:
Theme
.
itemHeightMedium
BorderImage
{
anchors.fill
:
parent
border.bottom
:
size
.
dp
(
8
)
border.top
:
size
.
dp
(
8
)
Text
{
anchors.centerIn
:
parent
color
:
(
styleData
.
selected
)
?
Theme
.
accentColor
:
Theme
.
textColor
text
:
styleData
.
title
.
toUpperCase
()
font.pixelSize
:
Theme
.
fontSizeSmall
}
Rectangle
{
visible
:
index
>
0
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.margins
:
size
.
dp
(
10
)
width
:
1
color
:
"
#3a3a3a
"
}
Rectangle
{
visible
:
styleData
.
selected
width
:
parent
.
width
height
:
1
color
:
Theme
.
accentColor
anchors
{
bottom
:
parent
.
bottom
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment