aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/SwipeDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-05-14 10:33:23 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-05-18 09:26:05 +0000
commit66129d45ffae848dead6e05d307789216c2f51cf (patch)
tree4890f3e4747aebeb8111b1980e5fb0c73bb9aaa9 /src/imports/controls/SwipeDelegate.qml
parent08eb526524e92e0d1139cb74e1a7818bcd8d5d6a (diff)
Make SwipeDelegate look like an ordinary delegate
Sync background colors with the ItemDelegate implementation of each style, so SwipeDelegate won't look out of place when mixed with other delegates like on the Delegates page in Gallery. Material and Universal styles need an extra Rectangle to fill the background, because their press colors etc. are translucent. Change-Id: If3bc545a2c12430f79cf538cf610bd2106f9660c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/SwipeDelegate.qml')
-rw-r--r--src/imports/controls/SwipeDelegate.qml2
1 files changed, 1 insertions, 1 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