blob: 3871cc4caaf6a0deae4e30b23e031e5930955c6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import QtQuick
import Quickshell.Services.Notifications
import "../"
BarBlock {
id: root
property bool showNotification: false
text: " " + notifServer.trackedNotifications.values.length
onClicked: function() {
showNotification = !showNotification
}
NotificationServer {
id: notifServer
onNotification: (notification) => {
notification.tracked = true
}
}
NotificationPanel {
text_color: root.color
visible: showNotification
anchors {
top: parent.top
}
margins {
top: 10
}
}
}
|