summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-13 17:26:41 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-13 17:26:41 +0200
commitf9810413c6aff247b63d8321812a98f204eb0b49 (patch)
tree8dfaa614c50b6aebdb1048a4718491676fa0734a /accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
parent3ce3fe19b11e30fd98d7eee06d56b90ae33b228d (diff)
downloadnixos-f9810413c6aff247b63d8321812a98f204eb0b49.tar
nixos-f9810413c6aff247b63d8321812a98f204eb0b49.tar.gz
nixos-f9810413c6aff247b63d8321812a98f204eb0b49.tar.bz2
nixos-f9810413c6aff247b63d8321812a98f204eb0b49.tar.xz
nixos-f9810413c6aff247b63d8321812a98f204eb0b49.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
index 1005182a..26ac4bde 100644
--- a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
+++ b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
@@ -41,8 +41,13 @@ Item {
41 implicitSize: 14 41 implicitSize: 14
42 anchors.centerIn: parent 42 anchors.centerIn: parent
43 43
44 icon: NotificationManager.displayInhibited ? "message-off" : "message" 44 icon: NotificationManager.active ? "message" : "message-off"
45 color: NotificationManager.displayInhibited ? "white" : "#555" 45 color: {
46 if (!NotificationManager.active && !NotificationManager.displayInhibited)
47 return "#f28a21";
48 if (NotificationManager.displayInhibited)
49 return "white";
50 return "#555";
46 } 51 }
47 } 52 }
48 } 53 }
@@ -64,7 +69,7 @@ Item {
64 sourceComponent: PopupWindow { 69 sourceComponent: PopupWindow {
65 id: tooltip 70 id: tooltip
66 71
67 property bool nextVisible: !NotificationManager.displayInhibited && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse) 72 property bool nextVisible: NotificationManager.active && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse)
68 73
69 anchor { 74 anchor {
70 item: widgetMouseArea 75 item: widgetMouseArea