aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/SliderHandle.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-22 14:50:24 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-22 16:52:21 +0000
commit119e43db9747ee070c84fc3ffb4c81ee4db35da8 (patch)
treedbd086267ed443ee86668449fd618a7bf49066a0 /src/imports/controls/material/SliderHandle.qml
parent08344012fce59dc50d18778acc9861c5e242ea09 (diff)
Material: add missing focus highlights
Change-Id: Id678a095a56f7494c9f32160326ba667a6c0dc28 Task-number: QTBUG-51257 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/imports/controls/material/SliderHandle.qml')
-rw-r--r--src/imports/controls/material/SliderHandle.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/imports/controls/material/SliderHandle.qml b/src/imports/controls/material/SliderHandle.qml
index dc1a836d..6f54eaf5 100644
--- a/src/imports/controls/material/SliderHandle.qml
+++ b/src/imports/controls/material/SliderHandle.qml
@@ -55,7 +55,7 @@ Item {
height: parent.height
radius: width / 2
color: root.control.Material.accentColor
- scale: root.handlePressed || root.handleHasFocus ? 1.5 : 1
+ scale: root.handlePressed ? 1.5 : 1
Behavior on scale {
NumberAnimation {
@@ -63,4 +63,12 @@ Item {
}
}
}
+
+ Ripple {
+ width: parent.width
+ height: width
+ control: root.control
+ colored: true
+ opacity: root.handleHasFocus && !root.handlePressed ? 1 : 0
+ }
}