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
64263400
Commit
64263400
authored
Sep 20, 2017
by
eetu
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into master
parents
03c77737
bad236c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
TabViewStyle.qml
src/styles/TabViewStyle.qml
+14
-3
No files found.
src/styles/TabViewStyle.qml
View file @
64263400
/*
/*
* Copyright (C) 2013 Andrea Bernabei <and.bernabei@gmail.com>
* 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
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Library General Public
...
@@ -18,7 +19,9 @@
...
@@ -18,7 +19,9 @@
*/
*/
import
QtQuick
2.6
import
QtQuick
2.6
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
TabViewStyle
{
TabViewStyle
{
tabsAlignment
:
Qt
.
AlignVCenter
tabsAlignment
:
Qt
.
AlignVCenter
...
@@ -31,10 +34,9 @@ TabViewStyle {
...
@@ -31,10 +34,9 @@ TabViewStyle {
anchors.fill
:
parent
anchors.fill
:
parent
border.bottom
:
Theme
.
itemSpacingExtraSmall
border.bottom
:
Theme
.
itemSpacingExtraSmall
border.top
:
Theme
.
itemSpacingExtraSmall
border.top
:
Theme
.
itemSpacingExtraSmall
source
:
styleData
.
selected
?
"
/usr/share/glacier-components/images/tab_selected.png
"
:
"
/usr/share/glacier-components/images/tabs_standard.png
"
Text
{
Text
{
anchors.centerIn
:
parent
anchors.centerIn
:
parent
color
:
Theme
.
textColor
color
:
(
styleData
.
selected
)
?
Theme
.
accentColor
:
Theme
.
textColor
text
:
styleData
.
title
.
toUpperCase
()
text
:
styleData
.
title
.
toUpperCase
()
font.pixelSize
:
Theme
.
fontSizeTiny
font.pixelSize
:
Theme
.
fontSizeTiny
}
}
...
@@ -43,9 +45,18 @@ TabViewStyle {
...
@@ -43,9 +45,18 @@ TabViewStyle {
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.margins
:
Theme
.
itemSpacingExtraSmall
anchors.margins
:
Theme
.
itemSpacingExtraSmall
width
:
1
width
:
size
.
ratio
(
1
)
color
:
Theme
.
fillDarkColor
color
:
Theme
.
fillDarkColor
}
}
Rectangle
{
visible
:
styleData
.
selected
width
:
parent
.
width
height
:
size
.
ratio
(
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