Programmatic color scheme change in QKdeTheme

David Redondo kde at david-redondo.de
Mon Mar 10 16:39:33 GMT 2025


Hi Alex,

Am Montag, 10. März 2025, 16:49 schrieb Axel Spoerl:
> Hi KDE folks,
> 
> Qt 6.8 has implemented QPlatformTheme::requestColorScheme() as a virtual function. It is meant to allow a programmatic color scheme change within a QGuiApplication. If the system's theme is dark, the application can still be light and vice versa.
> https://codereview.qt-project.org/c/qt/qtbase/+/628010 re-implements this function in QKdeTheme. In case of a deviation (requested color scheme != system color scheme), it falls back to a fusion palette (of which a dark and a light version exist).
> 

Do you think it would be helpful if we would give you the palettes that result when using Breeze and Breeze Dark colors that you could use instead of fusion?

Also thanks for the heads up, maybe it's something we need to implement in our own  QPlatformTheme.

David






More information about the kde-devel mailing list