summaryrefslogtreecommitdiffstats
path: root/tests/auto/printsupport/kernel/qprinterinfo
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-08-22 15:42:20 +0800
committerMitch Curtis <mitch.curtis@qt.io>2022-08-24 15:18:21 +0800
commit9c66af1f1d2cb8d25546d544e22fd7647227214e (patch)
tree83e16a24b97320babc00ebdb9fce18d17313e53f /tests/auto/printsupport/kernel/qprinterinfo
parenta4c0e442e5f4f3ca2ed8ea81883db31e464a0209 (diff)
Account for dark system themes in qt_fusionPalette
On Ubuntu (Gnome), the Fusion style didn't account for when a dark theme was set in the system's settings. Neither QGtk3Theme, nor QGnomeTheme (which it derives from) provide a palette() implementation, so they'd fall back to QPlatformTheme's. This default implementation calls QPlatformThemePrivate::initializeSystemPalette(), which uses qt_fusionPalette(). This patch accounts for QPlatformTheme::appearance() in qt_fusionPalette(), adjusting the palette roles accordingly to look correct when run under a dark theme. This also fixes the same issue for the Fusion style in Qt Quick Controls. Fixes: QTBUG-90504 Task-number: QTBUG-99276 Pick-to: 6.4 Change-Id: Id096bf809ef7a63dc440b5a68283e123173e917e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/printsupport/kernel/qprinterinfo')
0 files changed, 0 insertions, 0 deletions