From 188b5e2a02926b6f1b43793f0bc1f6435bb949c4 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 21 Sep 2017 10:11:04 +0200 Subject: 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 --- src/imports/controls/SwipeDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/controls/SwipeDelegate.qml') 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 { -- cgit v1.2.3