effects/desktopgrid: Fix panel opacity animation during transition

It did fade back in, but at the beginning of animation it used to just
instantly disappear.

FIXED-IN: 5.25.5 5.26
This commit is contained in:
ivan tkachenko 2022-08-02 16:58:34 +03:00
parent 76fbffb40b
commit b6f6e7f15a
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3
2 changed files with 8 additions and 8 deletions

View file

@ -73,13 +73,6 @@ FocusScope {
height: model.client.height
z: model.client.stackingOrder
opacity: model.client.dock ? desktopView.panelOpacity : 1
Behavior on opacity {
enabled: !container.effect.gestureInProgress
OpacityAnimator {
duration: container.effect.animationDuration
easing.type: Easing.InOutCubic
}
}
}
}

View file

@ -155,7 +155,7 @@ Rectangle {
property Item currentItem
readonly property real targetScale : 1 / Math.max(rows, columns)
property real panelOpacity
property real panelOpacity: 1
Behavior on x {
enabled: !container.effect.gestureInProgress
@ -178,6 +178,13 @@ Rectangle {
easing.type: Easing.InOutCubic
}
}
Behavior on panelOpacity {
enabled: !container.effect.gestureInProgress
NumberAnimation {
duration: container.effect.animationDuration
easing.type: Easing.InOutCubic
}
}
width: parent.width * columns
height: parent.height * rows