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/notifications/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/notifications/Wrapper.qml')
| -rw-r--r-- | modules/notifications/Wrapper.qml | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/modules/notifications/Wrapper.qml b/modules/notifications/Wrapper.qml index 47655ac..61acc56 100644 --- a/modules/notifications/Wrapper.qml +++ b/modules/notifications/Wrapper.qml @@ -1,21 +1,39 @@ +import qs.components import qs.config -import Quickshell import QtQuick Item { id: root - required property PersistentProperties visibilities - required property Item panel + required property var visibilities + required property Item panels visible: height > 0 + implicitWidth: Math.max(panels.sidebar.width, content.implicitWidth) implicitHeight: content.implicitHeight - implicitWidth: content.implicitWidth + + states: State { + name: "hidden" + when: root.visibilities.sidebar && Config.sidebar.enabled + + PropertyChanges { + root.implicitHeight: 0 + } + } + + transitions: Transition { + Anim { + target: root + property: "implicitHeight" + duration: Appearance.anim.durations.expressiveDefaultSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial + } + } Content { id: content visibilities: root.visibilities - panel: root.panel + panels: root.panels } } |