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/drawers/Panels.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/drawers/Panels.qml')
| -rw-r--r-- | modules/drawers/Panels.qml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml index ed21f80..7896ddb 100644 --- a/modules/drawers/Panels.qml +++ b/modules/drawers/Panels.qml @@ -6,6 +6,7 @@ import qs.modules.launcher as Launcher import qs.modules.dashboard as Dashboard import qs.modules.bar.popouts as BarPopouts import qs.modules.utilities as Utilities +import qs.modules.sidebar as Sidebar import Quickshell import QtQuick @@ -23,6 +24,7 @@ Item { readonly property Dashboard.Wrapper dashboard: dashboard readonly property BarPopouts.Wrapper popouts: popouts readonly property Utilities.Wrapper utilities: utilities + readonly property Sidebar.Wrapper sidebar: sidebar anchors.fill: parent anchors.margins: Config.border.thickness @@ -31,20 +33,20 @@ Item { Osd.Wrapper { id: osd - clip: root.visibilities.session + clip: session.width > 0 || sidebar.width > 0 screen: root.screen visibilities: root.visibilities anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right - anchors.rightMargin: session.width + anchors.rightMargin: session.width + sidebar.width } Notifications.Wrapper { id: notifications visibilities: root.visibilities - panel: root + panels: root anchors.top: parent.top anchors.right: parent.right @@ -53,10 +55,13 @@ Item { Session.Wrapper { id: session + clip: sidebar.width > 0 visibilities: root.visibilities + panels: root anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right + anchors.rightMargin: sidebar.width } Launcher.Wrapper { @@ -101,8 +106,20 @@ Item { id: utilities visibilities: root.visibilities + sidebar: sidebar anchors.bottom: parent.bottom anchors.right: parent.right } + + Sidebar.Wrapper { + id: sidebar + + visibilities: root.visibilities + panels: root + + anchors.top: notifications.bottom + anchors.bottom: utilities.top + anchors.right: parent.right + } } |