From 8ea4362ba1e955dfd60a553484a00356eff5e06a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 13 May 2025 18:23:11 +1000 Subject: notifs: move to drawers --- modules/drawers/Backgrounds.qml | 8 ++++++++ modules/drawers/Drawers.qml | 2 +- modules/drawers/Panels.qml | 12 ++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) (limited to 'modules/drawers') 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 + } } -- cgit v1.2.3-freya