Add support for recoloring symbolic icons from a GResource
When loaded from a GResource, icons are not recolored when the application switches to a dark stylesheet variant. I'm not entirely sure if it's a bug or a feature request.
Steps to reproduce
- Create a
GtkImage
. - Set its
icon-name
param to any custom GResource icon (for example,globe-symbolic
). - Set
gtk-application-prefer-dark-theme
inGtkSettings
totrue
.
Current behavior
Icons loaded from a GResource will not be recolored.
Expected outcome
Since GTK supports loading icons from GResource, all icons should be able to adapt to the dark stylesheet automatically for consistency's sake.
Version information
Tested against GTK 4.3.1
Additional information
Here's how it looks like in Tootle's GTK4 port: