From 9f680e14611aa7a8a62bcb924eeb119139e98712 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 12 Sep 2023 18:00:19 -0400 Subject: [PATCH] feat(ags): put better icons for notifications --- config/ags/js/bar/notif-button.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/config/ags/js/bar/notif-button.js b/config/ags/js/bar/notif-button.js index f5d42c7..3c7a191 100644 --- a/config/ags/js/bar/notif-button.js +++ b/config/ags/js/bar/notif-button.js @@ -32,10 +32,17 @@ export const NotifButton = EventBox({ Icon({ connections: [ [Notifications, icon => { - // TODO: add no notifs vs notifs - icon.icon = Notifications.dnd - ? 'notifications-disabled-symbolic' - : 'preferences-system-notifications-symbolic'; + if (Notifications.dnd) { + icon.icon = 'notification-disabled-symbolic' + } + else { + if (Notifications.notifications.length > 0) { + icon.icon = 'notification-new-symbolic' + } + else { + icon.icon = 'notification-symbolic' + } + } }], ], }),