Krolyxon
Commit fb9b856

Branches

Refs →

aurora.configquickshellauroraNotifPopups.qml

34 lines · 867 B · QML

1import QtQuick
2import QtQuick.Layouts
3import Quickshell
4import Quickshell.Wayland
5
6PanelWindow {
7 id: win
8 property bool suppressed: false // hidden while the control panel is open
9
10 visible: Notifs.popups.length > 0 && !suppressed
11 anchors { top: true; right: true }
12 margins { top: 6; right: 8 }
13 implicitWidth: 360
14 implicitHeight: col.implicitHeight
15 exclusiveZone: 0
16 color: "transparent"
17 WlrLayershell.layer: WlrLayer.Overlay
18 WlrLayershell.namespace: "aurora-notifs"
19 WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
20
21 ColumnLayout {
22 id: col
23 width: 360
24 spacing: 6
25 Repeater {
26 model: Notifs.popups
27 delegate: NotifCard {
28 required property var modelData
29 n: modelData.n
30 popup: true
31 }
32 }
33 }
34}