aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/imports/controls/SwipeDelegate.qml2
-rw-r--r--src/imports/controls/material/SwipeDelegate.qml13
-rw-r--r--src/imports/controls/universal/SwipeDelegate.qml15
3 files changed, 20 insertions, 10 deletions
diff --git a/src/imports/controls/SwipeDelegate.qml b/src/imports/controls/SwipeDelegate.qml
index 6060fcb2..7ffd5a29 100644
--- a/src/imports/controls/SwipeDelegate.qml
+++ b/src/imports/controls/SwipeDelegate.qml
@@ -75,7 +75,7 @@ T.SwipeDelegate {
//! [background]
background: Rectangle {
- color: control.down ? "#bdbebf" : "#eeeeee"
+ color: control.visualFocus ? (control.down ? "#cce0ff" : "#e5efff") : (control.down ? "#bdbebf" : "#ffffff")
Behavior on x {
enabled: !control.down
diff --git a/src/imports/controls/material/SwipeDelegate.qml b/src/imports/controls/material/SwipeDelegate.qml
index 4879f09f..e1375f76 100644
--- a/src/imports/controls/material/SwipeDelegate.qml
+++ b/src/imports/controls/material/SwipeDelegate.qml
@@ -81,9 +81,16 @@ T.SwipeDelegate {
background: Rectangle {
implicitHeight: 48
- color: !control.enabled ? control.Material.swipeDelegateDisabledColor :
- (control.down ? control.Material.swipeDelegatePressColor :
- (control.visualFocus || control.hovered ? control.Material.swipeDelegateHoverColor : control.Material.swipeDelegateColor))
+ color: control.Material.backgroundColor
+
+ Rectangle {
+ width: parent.width
+ height: parent.height
+ visible: control.down || control.highlighted || control.visualFocus
+ color: control.down ? control.Material.buttonPressColor :
+ control.visualFocus || control.hovered ? control.Material.swipeDelegateHoverColor :
+ control.Material.listHighlightColor
+ }
Behavior on x {
enabled: !control.down
diff --git a/src/imports/controls/universal/SwipeDelegate.qml b/src/imports/controls/universal/SwipeDelegate.qml
index 02a2fa65..bc9e4429 100644
--- a/src/imports/controls/universal/SwipeDelegate.qml
+++ b/src/imports/controls/universal/SwipeDelegate.qml
@@ -83,16 +83,19 @@ T.SwipeDelegate {
//! [background]
background: Rectangle {
- color: !control.enabled ? control.Universal.chromeDisabledHighColor :
- (control.down ? control.Universal.chromeHighColor :
- (control.visualFocus || control.hovered ? control.Universal.chromeLowColor : control.Universal.chromeMediumColor))
+ color: control.Universal.background
Rectangle {
width: parent.width
height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
+ color: control.down ? control.Universal.listMediumColor : control.Universal.altMediumLowColor
+ Rectangle {
+ width: parent.width
+ height: parent.height
+ visible: control.visualFocus || control.highlighted
+ color: control.Universal.accent
+ opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
+ }
}
Behavior on x {