aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/TabBar.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-25 14:16:39 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-25 17:24:43 +0000
commit08cbefe5bb7e65ff14f8663eae53d614616f2037 (patch)
treef575c242ad3b184595393c6b893de5794e40bbd1 /src/imports/controls/TabBar.qml
parent8e10437466952e4af427173e95a3c7947d317866 (diff)
Default style tabs
We don't have a design yet, so this is just something improvised based on the old flat style tab design & adapted to default style colors. Change-Id: Icd08d32bb08a97ac4cba21a647dbd5b043cb7c91 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/TabBar.qml')
-rw-r--r--src/imports/controls/TabBar.qml28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/imports/controls/TabBar.qml b/src/imports/controls/TabBar.qml
index 773382a3..b1a9009c 100644
--- a/src/imports/controls/TabBar.qml
+++ b/src/imports/controls/TabBar.qml
@@ -59,37 +59,13 @@ T.TabBar {
orientation: ListView.Horizontal
boundsBehavior: Flickable.StopAtBounds
snapMode: ListView.SnapToItem
-
- highlightMoveDuration: 250
- highlightResizeDuration: 0
- highlightFollowsCurrentItem: true
- highlight: Item {
- z: 2
- Rectangle {
- height: 4
- width: parent.width
- y: parent.height - height
- color: "#353637"
- }
- }
}
//! [contentItem]
//! [background]
background: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
-
- border.color: "#ffffff"
- border.width: 8
- color: control.count > 1 ? "#bdbebf" : "#ffffff"
-
- Rectangle {
- y: parent.height - height
- width: parent.width
- height: 1
- color: "#bdbebf"
- }
+ implicitWidth: 40
+ implicitHeight: 40
}
//! [background]
}