aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-06-17 09:00:53 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-17 08:19:31 +0000
commit74ddeb461ef3d80d0127380e2fab4047f85bdba9 (patch)
tree8817ea82b8c9bc857bbbbfd73db2b71b69394044 /src
parenta7f627b08d4c3e0dc963018c67c5f8aff3f77b4a (diff)
Set inactive color for ButtonText in Fusion theme
Fixes: QTBUG-94559 Change-Id: I66c84052801aab56ad759289053e20d32e13c765 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit f78072d5bc2d65307c86ce6e6fbc8d83fa82bc42) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/quickcontrols2/fusion/qquickfusiontheme.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickcontrols2/fusion/qquickfusiontheme.cpp b/src/quickcontrols2/fusion/qquickfusiontheme.cpp
index 903758bb..29d2ed1a 100644
--- a/src/quickcontrols2/fusion/qquickfusiontheme.cpp
+++ b/src/quickcontrols2/fusion/qquickfusiontheme.cpp
@@ -47,6 +47,8 @@ void QQuickFusionTheme::initialize(QQuickTheme *theme)
QPalette systemPalette;
systemPalette.setColor(QPalette::Active, QPalette::ButtonText,
isDarkSystemTheme ? QColor::fromRgb(0xe7e7e7) : QColor::fromRgb(0x252525));
+ systemPalette.setColor(QPalette::Inactive, QPalette::ButtonText,
+ isDarkSystemTheme ? QColor::fromRgb(0xe7e7e7) : QColor::fromRgb(0x252525));
systemPalette.setColor(QPalette::Disabled, QPalette::ButtonText,
isDarkSystemTheme ? QColor::fromRgb(0x777777) : QColor::fromRgb(0xb6b6b6));
theme->setPalette(QQuickTheme::System, systemPalette);