diff options
author | Paweł Gronowski <a4b8231fbf6d87ff4c04@woland.xyz> | 2020-03-06 19:25:42 +0100 |
---|---|---|
committer | Paweł Gronowski <a4b8231fbf6d87ff4c04@woland.xyz> | 2020-03-17 12:09:03 +0100 |
commit | 0d5a43fa84ffe298d028aded4478d5e388d58298 (patch) | |
tree | 92693dcab5591fcad23ddc927945c308518e3c5c /src/imports/controls/material/SliderHandle.qml | |
parent | 8a442c3b7709424c768a99b304bdbdbac81f8011 (diff) |
Material: Change slider's color to grey when not enabled
When Slider was not enabled it would look exactly the same as when
enabled.
[ChangeLog][Controls][Material] Add visual distinction between an
enabled and not enabled slider.
Task-number: QTBUG-70768
Change-Id: If0d7e5adc19d8bc22a810cb2ba4e57b657ab48d4
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/SliderHandle.qml')
-rw-r--r-- | src/imports/controls/material/SliderHandle.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/material/SliderHandle.qml b/src/imports/controls/material/SliderHandle.qml index 2e3120e4..c9078bc8 100644 --- a/src/imports/controls/material/SliderHandle.qml +++ b/src/imports/controls/material/SliderHandle.qml @@ -55,8 +55,8 @@ Item { width: parent.width height: parent.height radius: width / 2 - color: root.control.Material.accentColor scale: root.handlePressed ? 1.5 : 1 + color: control.enabled ? root.control.Material.accentColor : root.control.Material.sliderDisabledColor Behavior on scale { NumberAnimation { @@ -71,6 +71,6 @@ Item { width: 22; height: 22 pressed: root.handlePressed active: root.handlePressed || root.handleHasFocus || root.handleHovered - color: root.control.Material.rippleColor + color: root.control.Material.highlightedRippleColor } } |