You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching theme, some icons don't change: those that are created in some QWidget's constructors and set once for all.
Solution
Qt stores all images in QPixmapCache and the key for a given QPixmap is documented (it's a combination of size and more properties). The idea is to replace the QPixmaps directly in the cache by correctly colorized ones (according to theme colors).
The text was updated successfully, but these errors were encountered:
Issue
When switching theme, some icons don't change: those that are created in some QWidget's constructors and set once for all.
Solution
Qt stores all images in
QPixmapCache
and the key for a givenQPixmap
is documented (it's a combination of size and more properties). The idea is to replace theQPixmaps
directly in the cache by correctly colorized ones (according to theme colors).The text was updated successfully, but these errors were encountered: