Skip to content
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

When switching theme, update QPixmapCache #28

Open
oclero opened this issue Sep 7, 2023 · 0 comments
Open

When switching theme, update QPixmapCache #28

oclero opened this issue Sep 7, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@oclero
Copy link
Owner

oclero commented Sep 7, 2023

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 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).

@oclero oclero added the enhancement New feature or request label Sep 8, 2023
@oclero oclero added this to the Bugfixes milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant