diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-18 15:19:15 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-18 15:19:15 +1000 |
| commit | 85d575f6c18017693cb2f3ab07314a0cf43adbe6 (patch) | |
| tree | 89540859a71162c28c8419af49c75cc3634e6b70 /modules/session/Wrapper.qml | |
| parent | launcher: fix open anim (diff) | |
| download | caelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.tar.gz caelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.tar.bz2 caelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.zip | |
feat: add sidebar
WIP
Diffstat (limited to 'modules/session/Wrapper.qml')
| -rw-r--r-- | modules/session/Wrapper.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/session/Wrapper.qml b/modules/session/Wrapper.qml index 967d8c3..14b03a8 100644 --- a/modules/session/Wrapper.qml +++ b/modules/session/Wrapper.qml @@ -9,6 +9,8 @@ Item { id: root required property PersistentProperties visibilities + required property var panels + readonly property real nonAnimWidth: content.implicitWidth visible: width > 0 implicitWidth: 0 @@ -19,7 +21,7 @@ Item { when: root.visibilities.session && Config.session.enabled PropertyChanges { - root.implicitWidth: content.implicitWidth + root.implicitWidth: root.nonAnimWidth } } @@ -41,7 +43,7 @@ Item { Anim { target: root property: "implicitWidth" - easing.bezierCurve: root.visibilities.osd ? Appearance.anim.curves.expressiveDefaultSpatial : Appearance.anim.curves.emphasized + easing.bezierCurve: root.panels.osd.width > 0 ? Appearance.anim.curves.expressiveDefaultSpatial : Appearance.anim.curves.emphasized } } ] |