Palette change + 6.1
-
Hi,
I added support in my application to building against Qt 6.1, I have just been do a few final bits where things haven't quite gone across from 5 to 6 properly.
The final part was ensuring that on macOS, theme changes are correct. (i.e the user changes from light to dark mode).
Previously I was using the PaletteChanged event to handle OS theme changes, but it has been deprecated so I changed it as per the deprecation warning to ApplicationPaletteChange.
When Compiling on Qt 5.15.2 both PaletteChanged and ApplicationPaletteChange behave correctly, a smooth change of colours as the switch occurs.
On 6.1, it works correctly when using PaletteChanged, nice and smooth, but when I switch to ApplicationPaletteChange I get a horrible switch where controls aren't in sync or are not fading properly, switching back to PaletteChanged it works great.
I've attached links to youtube to show what happens.
5.15.2 works with both PaletteChanged and ApplicaitonPaletteChange
6.1 only works properly with PaletteChangedThe source code is on GitHub, https://github.com/nedrysoft/pingnoo it's the ThemeSupport submodule that contains the palette code.
Correct First:
Broken Second:
-
Hi,
Looks like you may have found a bug. Did you already check the bug report system ?
Can you provide a minimal compilable example that shows this behaviour ?