Verified Commit b6f6e7f1 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

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
parent 76fbffb4
Pipeline #212083 passed with stage
in 13 minutes and 24 seconds
......@@ -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
}
}
}
}
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment