diff --git a/modules/Notifications.qml b/modules/Notifications.qml index c4abc02..a21a972 100644 --- a/modules/Notifications.qml +++ b/modules/Notifications.qml @@ -1,5 +1,6 @@ import QtQuick import Quickshell +import Quickshell.Services.Notifications import "." as M M.BarSection { @@ -14,6 +15,8 @@ M.BarSection { required property var bar + readonly property bool hasUrgent: M.NotifService.list.some(n => n.urgency === NotificationUrgency.Critical && n.state !== "dismissed") + M.BarIcon { icon: { if (M.NotifService.dnd) @@ -25,7 +28,8 @@ M.BarSection { } M.BarLabel { id: countLabel - label: M.NotifService.count > 0 ? String(M.NotifService.count) : "" + label: M.NotifService.count > 0 ? String(M.NotifService.count) + (root.hasUrgent ? "!" : "") : "" + color: root.hasUrgent ? M.Theme.base08 : root.accentColor anchors.verticalCenter: parent.verticalCenter transform: Scale {