From 4f1884b1217f1cddbe56d4e3135a7be0d1376ff9 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 18 Jul 2019 21:43:18 -0400 Subject: [PATCH] Animate button enabled state change --- src/qml/Base/HUIButton.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qml/Base/HUIButton.qml b/src/qml/Base/HUIButton.qml index 81050926..fe2bf63b 100644 --- a/src/qml/Base/HUIButton.qml +++ b/src/qml/Base/HUIButton.qml @@ -36,6 +36,7 @@ HBaseButton { dimension: iconDimension || contentLayout.height transform: iconTransform opacity: button.enabled ? 1 : 0.7 + Behavior on opacity { HNumberAnimation {} } Layout.topMargin: verticalMargin Layout.bottomMargin: verticalMargin @@ -51,6 +52,7 @@ HBaseButton { verticalAlignment: Text.AlignVCenter color: enabled ? theme.colors.foreground : theme.colors.foregroundDim2 + Behavior on color { HNumberAnimation {} } Layout.fillWidth: true }