From d6b1a7ae581f814346a3b0dcdfb496a439841a79 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:06:47 +0200 Subject: [PATCH] notifications: show ! suffix and red color on count when critical notifications present --- modules/Notifications.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {