Tray and notifications do not reflect dconf's icon-theme changes at runtime
Compositor
- [x] niri
- [ ] Hyprland
- [ ] Other (specify)
Description
I have darkman running dconf write /org/gnome/desktop/interface/icon-theme "'Flat-Remix-Yellow-Dark'" or dconf write /org/gnome/desktop/interface/icon-theme "'Flat-Remix-Yellow-Light'" along with other things. DankMaterialShell's tray module does not reflect it unless the shell is restarted.
Expected Behavior
It would be nice if tray icons and notification icons can reflect the change to the icon-theme in dconf without a restart of quickshell.
It is also good if DMS can maintain the icon theme by itself (i.e., use it as a transient variable like isLightMode), and expose an IPC endpoint, like the light/dark mode switch.
Steps to Reproduce
- Launch DMS
- Look at the tray module's icons
- Run `dconf write /org/gnome/desktop/interface/icon-theme "'Flat-Remix-Yellow-Dark'"`` with whatever other icon theme
- See that the tray icons still use the previous icon theme
- Restart quickshell
- See that the tray icons are using the new icon theme
Screenshots/Recordings
In light mode, using Dark icon theme, icons become unrecognizable:
In dark mode, using Dark icon theme, icons are good:
In light mode, using Light icon theme, icons are also good:
There has been work done here, feel free to reopen if it's still an issue.
Hey @Purian23, thanks for the update, but I don't think the tray icons are responsive on latest release (v0.4.1). I still get same result as in original post when changing icon-theme through dconf, and must restart dms completely to load the new tray icons.
I launch dms with dms run.
I couldn't figure it out, QT at least just does not reload the pixmaps no matter what once they've been loaded. There might be something I don't know about though