-
-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System tray symbolic icon not visible when bar is black #4816
Comments
The widget doesn't select which icon to draw this is done by the relevant program itself. I would expect this to be determined by some theme setting elsewhere. However, I am not sure why it would work on i3 and not on qtile as both should benefit from the same theme configs (unless you put something specific in your i3 config). |
Maybe something with _NET_SYSTEM_TRAY_COLORS for GTK+ 3? I don't have any themes installed manually I only use Adwaita icons and also never set it anywhere. |
This issue is stale because it has been open 90 days with no activity. Remove the |
I had the same issue with the network manager applet, nm-applet As suggested by @dawin64, _NET_SYSTEM_TRAY_COLORS was a solution for me. The most helpful thing I could find about it was this: https://awesome.naquadah.narkive.com/GbuwM9WP/systray-and-net-system-tray-colors So I ended up hacking systray.py. After the line
I added
Perhaps we could add a proper option to the systray widget to set this color? UPDATE
|
It would be easy enough to add an option to the widget to set this but do you know the meaning of the different values being set? |
I had to do some research on this. From what I can gather the _NET_SYSTEM_TRAY_COLORS atom is used by some gtk3 apps to stylise symbolic icons. It doesn't appear to have ever been adopted into the desktop standard and was probably never used that widely Anyway, the original link I posted also has a link to this gtk commit, which has some more detail: https://mail.gnome.org/archives/commits-list/2010-April/msg09154.html Basically, the numbers are 4 RGB triplets (16 bit) for:
So the values I used are white, red, orange, green respectively. I'm not sure 2-4 are important/used. I probably wouldn't expose these unless someone reported a case where they would be useful I'd be willing to have a go at a PR but it wasn't immediately obvious to me how to create/set an atom (without using a system call) As a somewhat related question, is the idea that StatusNotifier will replace Systray or is this really dependent on apps adding support for StatusNotifier icons? I tried nm-applet and keepassxc but they didn't display an icon (blueman did) |
#4995 (comment) Basically, there's talk about a new standard in town, designed to deprecate both Systray and StatusNotifier. |
Issue description
I am using 'volumeicon' on i3 and the symbolic icon appears in white but when I want to use the same program on qtile the icon is black and does not appear(black on black) if I would use
widget.Systray(background="ffffff")
it would work but this is not a good solution in my opinion. I could not find any information in the documentation if I can change the icon color of symbolic icons, but when the color is too dark the symbolic icon should be the inverse.Version
0.25.1.dev0+g005da458.d202440413
Backend
X11 (default)
Config
Logs
No response
Required
The text was updated successfully, but these errors were encountered: