gamecreature / QtAwesome

QtAwesome - Font Awesome for Qt Applications
Other
787 stars 149 forks source link

add support for dark/light mode switch #59

Closed hanjianqiao closed 6 months ago

hanjianqiao commented 6 months ago

QtAwesome setDefaultOption for all default colors inside constructor. When using single instance of QtAwesome and use swithes between dark/light theme, the icon color stay unchanged. Another case is calling QApplication::setPalette. I'm trying to find a way to let QtAwesome and other QObject knows about the change to fix the problem.

gamecreature commented 6 months ago

@hanjianqiao Thanks for your work, I like it! I will merge it to a separate branch first, to make sure it works with qt < 6.5. This light/dark support is a good start.