aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/SwipeDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-09-21 10:11:04 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-09-22 11:20:27 +0000
commit188b5e2a02926b6f1b43793f0bc1f6435bb949c4 (patch)
tree35d358ba9b0757f3065963af5cc9b60c31da0b1f /src/imports/controls/SwipeDelegate.qml
parent72d9c1bfb7f814163880386584cc6edde9158713 (diff)
Default: use palette.text
Make editors and delegates use the "text" color role from palettes. This color role is normally used as a foreground color for the "base" background color. Task-number: QTBUG-63331 Change-Id: Ic08463f54c1b04a4eccf791a576ae792f75bf89b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/SwipeDelegate.qml')
-rw-r--r--src/imports/controls/SwipeDelegate.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/SwipeDelegate.qml b/src/imports/controls/SwipeDelegate.qml
index 01b1c7d3..da3313a7 100644
--- a/src/imports/controls/SwipeDelegate.qml
+++ b/src/imports/controls/SwipeDelegate.qml
@@ -54,7 +54,7 @@ T.SwipeDelegate {
icon.width: 24
icon.height: 24
- icon.color: control.enabled ? Default.textDarkColor : Default.textDisabledColor
+ icon.color: control.palette.text
swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
@@ -67,7 +67,7 @@ T.SwipeDelegate {
icon: control.icon
text: control.text
font: control.font
- color: control.enabled ? Default.textDarkColor : Default.textDisabledColor
+ color: control.palette.text
}
background: Rectangle {