diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 18:23:11 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 18:23:11 +1000 |
| commit | 8ea4362ba1e955dfd60a553484a00356eff5e06a (patch) | |
| tree | 33cb8537a51d350a9c180e98df01d5b2c3f4af63 /modules/drawers | |
| parent | osd: fix show on hover + show on audio/brightness change (diff) | |
| download | caelestia-shell-8ea4362ba1e955dfd60a553484a00356eff5e06a.tar.gz caelestia-shell-8ea4362ba1e955dfd60a553484a00356eff5e06a.tar.bz2 caelestia-shell-8ea4362ba1e955dfd60a553484a00356eff5e06a.zip | |
notifs: move to drawers
Diffstat (limited to 'modules/drawers')
| -rw-r--r-- | modules/drawers/Backgrounds.qml | 8 | ||||
| -rw-r--r-- | modules/drawers/Drawers.qml | 2 | ||||
| -rw-r--r-- | modules/drawers/Panels.qml | 12 |
3 files changed, 21 insertions, 1 deletions
diff --git a/modules/drawers/Backgrounds.qml b/modules/drawers/Backgrounds.qml index 70fd48f..94d8dee 100644 --- a/modules/drawers/Backgrounds.qml +++ b/modules/drawers/Backgrounds.qml @@ -1,6 +1,7 @@ import "root:/services" import "root:/config" import "root:/modules/osd" as Osd +import "root:/modules/notifications" as Notifications import Quickshell import QtQuick import QtQuick.Shapes @@ -21,4 +22,11 @@ Shape { startX: root.width startY: (root.height - panels.osd.height) / 2 } + + Notifications.Background { + wrapper: panels.notifications + + startX: root.width + startY: 0 + } } diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 35129ce..fe70b8c 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -75,7 +75,7 @@ Variants { property bool launcher property bool osd - property bool notifs + property bool notifications: Notifs.popups.length > 0 property bool session } diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml index 06b4a09..645af21 100644 --- a/modules/drawers/Panels.qml +++ b/modules/drawers/Panels.qml @@ -1,5 +1,6 @@ import "root:/config" import "root:/modules/osd" as Osd +import "root:/modules/notifications" as Notifications import Quickshell import QtQuick @@ -10,6 +11,7 @@ Item { required property PersistentProperties visibilities readonly property Osd.Wrapper osd: osd + readonly property Notifications.Wrapper notifications: notifications anchors.fill: parent anchors.margins: BorderConfig.thickness @@ -23,4 +25,14 @@ Item { anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right } + + Notifications.Wrapper { + id: notifications + + screen: root.screen + visibility: visibilities.notifications + + anchors.top: parent.top + anchors.right: parent.right + } } |