diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2024-05-13 17:36:26 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2024-05-21 21:03:28 +0200 |
commit | 71d0de98359decfcc9be01a0ed5823a9595ef5d4 (patch) | |
tree | be6523a161d4a967828c4985e16c7c1721301948 /tests/manual/examples/widgets/widgets/icons/main.cpp | |
parent | e771e5e2d7ae77f46d01f087242e0f777fdc02ac (diff) |
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
Pick-to: 6.7
Change-Id: I120dd23eee71b14ea8ce3735c3f53bda2caa403e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/manual/examples/widgets/widgets/icons/main.cpp')
0 files changed, 0 insertions, 0 deletions