summaryrefslogtreecommitdiff
path: root/modules/drawers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/drawers')
-rw-r--r--modules/drawers/Backgrounds.qml8
-rw-r--r--modules/drawers/Drawers.qml2
-rw-r--r--modules/drawers/Panels.qml12
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
+ }
}