Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/TabBar.qml
Show All 16 Lines | |||||
17 | * the packaging of this file. Please review the following information to | 17 | * the packaging of this file. Please review the following information to | ||
18 | * ensure the GNU General Public License version 2.0 requirements will be | 18 | * ensure the GNU General Public License version 2.0 requirements will be | ||
19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | 19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | 22 | | |||
23 | import QtQuick 2.6 | 23 | import QtQuick 2.6 | ||
24 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | 24 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | ||
25 | import org.kde.kirigami 2.2 as Kirigami | ||||
25 | import QtQuick.Templates 2.0 as T | 26 | import QtQuick.Templates 2.0 as T | ||
26 | 27 | | |||
27 | T.TabBar { | 28 | T.TabBar { | ||
28 | id: controlRoot | 29 | id: controlRoot | ||
29 | 30 | | |||
31 | Kirigami.Theme.colorSet: Kirigami.Theme.Button | ||||
32 | Kirigami.Theme.inherit: false | ||||
33 | | ||||
30 | implicitWidth: contentItem.implicitWidth | 34 | implicitWidth: contentItem.implicitWidth | ||
31 | implicitHeight: contentItem.implicitHeight | 35 | implicitHeight: contentItem.implicitHeight | ||
32 | 36 | | |||
33 | spacing: 0 | 37 | spacing: 0 | ||
34 | 38 | | |||
35 | contentItem: ListView { | 39 | contentItem: ListView { | ||
36 | implicitWidth: controlRoot.contentModel.get(0).implicitWidth * count | 40 | implicitWidth: controlRoot.contentModel.get(0).implicitWidth * count | ||
37 | implicitHeight: controlRoot.contentModel.get(0).height | 41 | implicitHeight: controlRoot.contentModel.get(0).height | ||
Show All 27 Lines | 68 | background: Item { | |||
65 | Rectangle { | 69 | Rectangle { | ||
66 | anchors { | 70 | anchors { | ||
67 | left: parent.left | 71 | left: parent.left | ||
68 | right: parent.right | 72 | right: parent.right | ||
69 | bottom : controlRoot.position == T.TabBar.Header ? parent.bottom : undefined | 73 | bottom : controlRoot.position == T.TabBar.Header ? parent.bottom : undefined | ||
70 | top : controlRoot.position == T.TabBar.Header ? undefined : parent.top | 74 | top : controlRoot.position == T.TabBar.Header ? undefined : parent.top | ||
71 | } | 75 | } | ||
72 | height: 1 | 76 | height: 1 | ||
73 | color: StylePrivate.SystemPaletteSingleton.text(controlRoot.enabled) | 77 | color: Kirigami.Theme.textColor | ||
74 | opacity: 0.4 | 78 | opacity: 0.4 | ||
75 | } | 79 | } | ||
76 | } | 80 | } | ||
77 | } | 81 | } |