[FEATURE] Allow tray-only icon colorization
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
Feature type
Configuration / customization
Feature summary
Allow setting icon colorization for the tray separately from global icon colorization, since the user needs are different. Wanting tray icon color to align with the theme, is different from wanting all icons across noctalia to be colorized.
One is about alignment with the theme, the other is a different method of displaying icons (single color vs multiple colors).
Motivation / use case
For context, I use noctalia's gruvbox theme. This is what my bar looks like without global colorization, the tray is the leftmost icon of the right side of my bar (showing keepassxc). Note that the tray icon is white, and noctalia's widgets off-white:
enabling global icon colorization looks like this:
Note that the tray icon color now correctly aligns with the widget color. However, since it's global it also colorizes the icons in the taskbar and in the launcher, which I don't want.
My point is, I think most people want the color of the icons in their tray to align with their theme. However, I don't want to colorize all my icons. I like the original colors in the launcher and the taskbar. So separating out controls for tray icon colorization from global icon colorization seems nice to have to me.
Proposed solution
Allow setting icon colorization for tray icons separately. Or, colorize them by default, as it seems to me that they're wrong by default. Colorizing by default might be even more seamless, since I doubt that there are people who want the icon color in their tray to mismatch their theme. Or, if my colors are mismatching because of an error on my side, another option would be to document clearly how to make the tray icon color match the noctalia theme.
Alternatives considered
No response
References / related projects
In https://github.com/noctalia-dev/noctalia/issues/3533 per item tray icon colorization was requested and closed as too fragile. I agree with that conclusion. In that issue, @Ly-sec mentioned:
Global app-icon colorization is intentionally coarse. If it breaks icons you want left alone, we’d rather improve that path (or document limits) than grow a per-item exception system for the tray.
So in line with @Ly-sec's comment: I've noticed global icon colorization breaking icons I want left alone (i.e. non-tray icons), and hope my suggestion is a fix for that path.
Additional context
No response
I couldn't agree more, I have been running Noctalia since the v5 betas with the attached patch which provides exactly this functionality. It adds a "Colorize App Icons" to the Tray widget settings which applies only to the tray icons.
Making this the default seems too aggressive to me, but the option should be provided. Often tray icons have something like a red dot to indicate e.g. new messages. Since everything is colorized these alerts will not be as visible which might not suite all users.
This has just been implemented in 5.5.0. You can enable it with:
[widget.tray]
colorize_icons = true
If that works for you, please close this issue.
Yup, you're right. Works perfectly. Feel free to reopen if necessary.