popouts: fix anim when not shown
This commit is contained in:
parent
5948d581fd
commit
5d2f46082a
2 changed files with 6 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
|
enabled: Popouts.hasCurrent
|
||||||
|
|
||||||
Anim {
|
Anim {
|
||||||
easing.bezierCurve: Appearance.anim.curves.emphasized
|
easing.bezierCurve: Appearance.anim.curves.emphasized
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,15 @@ import Quickshell
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
|
id: root
|
||||||
|
|
||||||
property string currentName
|
property string currentName
|
||||||
property real currentCenter
|
property real currentCenter
|
||||||
property bool hasCurrent
|
property bool hasCurrent
|
||||||
|
|
||||||
Behavior on currentCenter {
|
Behavior on currentCenter {
|
||||||
|
enabled: root.hasCurrent
|
||||||
|
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.anim.durations.normal
|
duration: Appearance.anim.durations.normal
|
||||||
easing.type: Easing.BezierSpline
|
easing.type: Easing.BezierSpline
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue