El Wednesday 24 February 2016, a les 14:41:36, Milian Wolff va escriure: > Hey all, > > I notice that breeze icons now adapt to the selected color scheme - which is > really awesome! But I also see that they do not properly react on palette > changes. To reproduce, use a bright or dark color scheme, start any app, > then switch to a dark or bright color scheme. Results look like this then > e.g. for kmail: > > http://i.snag.gy/CuFt1.jpg > > Any idea how we can update this? I know that there are two Qt events emitted > when we change the color scheme, i.e. ApplicationPaletteChange and > PaletteChange. Would applications need to react to that and trigger some > kind of update? How? Afaik the images are cached internally by QIcon (or?). > > While trying to fix a somewhat related bug in KDevelop [1], I also noticed > that KColorScheme returns the same values before and after handling the > PaletteChange event. Do I need to add an event filter on the > ApplicationPaletteChange event?
I guess ideally KColorScheme should update after an ApplicationPaletteChange, not sure if QApplication calls update() over all widgets after ApplicationPaletteChange so you may still need to have some support on the app that does that? Cheers, Albert > When should creating a new KColorScheme > instance return the updated palette? > > [1]: https://bugs.kde.org/show_bug.cgi?id=358776 > > Thanks
signature.asc
Description: This is a digitally signed message part.
