Skip to content

Properly use colors for rofication message count#158

Open
ralphm wants to merge 1 commit intoregolith-linux:masterfrom
ralphm:roficiation-colors
Open

Properly use colors for rofication message count#158
ralphm wants to merge 1 commit intoregolith-linux:masterfrom
ralphm:roficiation-colors

Conversation

@ralphm
Copy link

@ralphm ralphm commented Oct 2, 2025

Unlike the battery script, this script uses {$color:-} ahead of the xrescat call. As color is always provided, it takes precedence and the warning and critical colors are never used. This change ignores $color and just uses the result from the respective xrescat calls.

Arguably the fallback values should not be #D8DEE9 for all, but I expect the referenced resources to be there at all times.

Unlike the `battery` script, this script uses `{$color:-}` ahead of the
xrescat call. As `color` is always provided, it takes precedence and the
warning and critical colors are never used. This change ignores $color
and just uses the result from the respective xrescat calls.

Arguably the fallback values should not be #D8DEE9 for all, but I expect
the referenced resources to be there at all times.
@kgilmer
Copy link
Member

kgilmer commented Oct 4, 2025

Hi @ralphm , thanks for your fix! Can you briefly describe how you tested this?

@ralphm
Copy link
Author

ralphm commented Oct 6, 2025

@kgilmer sure. When there are no notifications, the script will emit an empty message bubble icon, and the count of 0 in white or light gray (the usual value colors) . I then create a new notifications using notify-send:

$ notify-send "Hello"

This will yield an increased count. This count should be yellow, but comes out as white before this change. The icon switches to a filled message bubble.

$ notify-send -u critical "Oops"

This creates a notification with urgency critical. This should switch the value to be two numbers separated by a slash to denote the number of critical and normal notifications respectively. E.g. 1/1. Also, the color of the value should be red.

Note that the default action (ilia -p notifications) makes no (visual) distinction between critical and normal (or low) urgency notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants