From c7994835630cf5a34fda22829d6462b8a0d34ae9 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 14 Feb 2017 09:42:37 +0100 Subject: Material: remove color animation on various controls' background This resulted in the background becoming very dark when toggling between enabled/disabled or editable/read-only states. Task-number: QTBUG-58828 Change-Id: I710fa97aefd26e490a219ba99833d5bfe47f2133 Reviewed-by: J-P Nurmi --- src/imports/controls/material/Button.qml | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/imports/controls/material/Button.qml') diff --git a/src/imports/controls/material/Button.qml b/src/imports/controls/material/Button.qml index 471ca8f2..e5821375 100644 --- a/src/imports/controls/material/Button.qml +++ b/src/imports/controls/material/Button.qml @@ -92,12 +92,6 @@ T.Button { color: control.checked && control.enabled ? control.Material.accentColor : control.Material.secondaryTextColor } - Behavior on color { - ColorAnimation { - duration: 400 - } - } - // The layer is disabled when the button color is transparent so you can do // Material.background: "transparent" and get a proper flat button without needing // to set Material.elevation as well -- cgit v1.2.3