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
wilder-5.24
Nate Graham 4 years ago
parent e12941dc2c
commit 747076d712
  1. 2
      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
}

Loading…
Cancel
Save