diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml | 11 |
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 |
