diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-17 09:00:53 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-17 07:22:02 +0000 |
| commit | f78072d5bc2d65307c86ce6e6fbc8d83fa82bc42 (patch) | |
| tree | 526575cebae04070ce15cfcaa051181c93626030 /src/quickcontrols2 | |
| parent | 295ead1a0a74c3699349af36f646030891403b26 (diff) | |
Set inactive color for ButtonText in Fusion theme
Pick-to: dev
Fixes: QTBUG-94559
Change-Id: I66c84052801aab56ad759289053e20d32e13c765
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Diffstat (limited to 'src/quickcontrols2')
| -rw-r--r-- | src/quickcontrols2/fusion/qquickfusiontheme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickcontrols2/fusion/qquickfusiontheme.cpp b/src/quickcontrols2/fusion/qquickfusiontheme.cpp index 903758bb73..29d2ed1ab2 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); |
