gamecreature / QtAwesome

QtAwesome - Font Awesome for Qt Applications
Other
773 stars 147 forks source link

add support for dark/light mode switch #59

Closed hanjianqiao closed 4 months ago

hanjianqiao commented 5 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 4 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.