diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-28 15:44:12 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-05-02 09:24:48 +0000 |
commit | fa20ad9024ed2d0e1596cd8a9e24bcb6abd080d8 (patch) | |
tree | 5005ce111a2071d2f1a5a376ae5d637edc4068cb /src/imports/controls/RangeSlider.qml | |
parent | f2d3a486933cd3cb71b60ee27af53017e3a958bb (diff) |
Default style: add correct focus colors for RangeSlider
Change-Id: Id69adb6208aea43879ba0cd718c358ac863fa759
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/RangeSlider.qml')
-rw-r--r-- | src/imports/controls/RangeSlider.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/controls/RangeSlider.qml b/src/imports/controls/RangeSlider.qml index 22656425..096df0b6 100644 --- a/src/imports/controls/RangeSlider.qml +++ b/src/imports/controls/RangeSlider.qml @@ -59,8 +59,8 @@ T.RangeSlider { implicitHeight: 28 radius: width / 2 border.width: activeFocus ? 2 : 1 - border.color: "#353637" - color: first.pressed ? "#bdbebf" : "#ffffff" + border.color: activeFocus ? "#0066ff" : (control.first.pressed ? "#26282a" : "#353637") + color: first.pressed ? (activeFocus ? "#cce0ff" : "#e4e4e4") : (activeFocus ? "#f0f6ff" : "#f6f6f6") readonly property bool horizontal: control.orientation === Qt.Horizontal } @@ -74,8 +74,8 @@ T.RangeSlider { implicitHeight: 28 radius: width / 2 border.width: activeFocus ? 2 : 1 - border.color: "#353637" - color: second.pressed ? "#bdbebf" : "#ffffff" + border.color: activeFocus ? "#0066ff" : (control.second.pressed ? "#26282a" : "#353637") + color: second.pressed ? (activeFocus ? "#cce0ff" : "#e4e4e4") : (activeFocus ? "#f0f6ff" : "#f6f6f6") readonly property bool horizontal: control.orientation === Qt.Horizontal } |