diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2024-05-13 17:36:26 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-05-22 09:04:44 +0000 |
commit | 1c2bd7809d79961c9c7969aea68fcd5eb84194e3 (patch) | |
tree | 1f4d7072f8a5aa9d8736ed223f1f825d6e4e5549 /examples/gui/rasterwindow | |
parent | 56c37e7ddcea5cb44a3eb27a974fff8239e7ce4f (diff) |
QKdeTheme: update color scheme with unknown desktop theme6.7
When a KDE theme name doesn't contain the keywords "dark" or "light",
QKdeThemePrivate::updateColorScheme() falls back to heuristics. It
compares text and base color. It sets the color scheme to dark, if
text is lighter than base and otherwise to light.
When the theme name can't be read from KDE settings, because it is
stored on a different location or not yet set, the heuristics fallback
doesn't happen. The color scheme always becomes "Unknown".
Remove this limitation to the benefit of currently unsupported Linuxes.
Fixes: QTBUG-125285
Change-Id: I120dd23eee71b14ea8ce3735c3f53bda2caa403e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 71d0de98359decfcc9be01a0ed5823a9595ef5d4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/gui/rasterwindow')
0 files changed, 0 insertions, 0 deletions