From 747076d71262bea04c9ee9d2b971ed7b36141b23 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Tue, 30 Nov 2021 21:36:42 -0700 Subject: [PATCH] LogoutButton: fix janky animation Use a PropertyAnimation instead of an OpacityAnimator, as ActionButton itself does. This fixes weird animation jumpiness on hover. BUG: 446021 FIXED-IN: 5.24 --- lookandfeel/contents/logout/LogoutButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookandfeel/contents/logout/LogoutButton.qml b/lookandfeel/contents/logout/LogoutButton.qml index 0bb628064..10a9e0b1c 100644 --- a/lookandfeel/contents/logout/LogoutButton.qml +++ b/lookandfeel/contents/logout/LogoutButton.qml @@ -27,7 +27,7 @@ ActionButton { circleOpacity: 0.15 // Selected option's circle is instantly visible opacity: activeFocus || containsMouse ? 1 : 0.5 Behavior on opacity { - OpacityAnimator { + PropertyAnimation { // OpacityAnimator makes it turn black at random intervals duration: PlasmaCore.Units.longDuration easing.type: Easing.InOutQuad }