diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-25 14:16:39 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-25 17:24:43 +0000 |
commit | 08cbefe5bb7e65ff14f8663eae53d614616f2037 (patch) | |
tree | f575c242ad3b184595393c6b893de5794e40bbd1 /src/imports/controls/TabButton.qml | |
parent | 8e10437466952e4af427173e95a3c7947d317866 (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/TabButton.qml')
-rw-r--r-- | src/imports/controls/TabButton.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/controls/TabButton.qml b/src/imports/controls/TabButton.qml index 1fbb6050..ef11e405 100644 --- a/src/imports/controls/TabButton.qml +++ b/src/imports/controls/TabButton.qml @@ -60,7 +60,8 @@ T.TabButton { text: control.text font: control.font elide: Text.ElideRight - color: !control.enabled ? "#bdbebf" : control.pressed ? "#000000" : "#353637" + opacity: enabled ? 1 : 0.3 + color: !control.checked ? "#ffffff" : control.pressed ? "#26282a" : "#353637" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } @@ -68,9 +69,8 @@ T.TabButton { //! [background] background: Rectangle { - height: parent.height - 1 - implicitHeight: 26 - color: "#ffffff" + implicitHeight: 40 + color: control.pressed ? (control.checked ? "#e4e4e4" : "#585a5c") : (control.checked ? "transparent" : "#353637") } //! [background] } |