feat(ags): put better icons for notifications
This commit is contained in:
parent
e7febace2b
commit
9f680e1461
1 changed files with 11 additions and 4 deletions
|
@ -32,10 +32,17 @@ export const NotifButton = EventBox({
|
||||||
Icon({
|
Icon({
|
||||||
connections: [
|
connections: [
|
||||||
[Notifications, icon => {
|
[Notifications, icon => {
|
||||||
// TODO: add no notifs vs notifs
|
if (Notifications.dnd) {
|
||||||
icon.icon = Notifications.dnd
|
icon.icon = 'notification-disabled-symbolic'
|
||||||
? 'notifications-disabled-symbolic'
|
}
|
||||||
: 'preferences-system-notifications-symbolic';
|
else {
|
||||||
|
if (Notifications.notifications.length > 0) {
|
||||||
|
icon.icon = 'notification-new-symbolic'
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
icon.icon = 'notification-symbolic'
|
||||||
|
}
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue