aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-02-06 12:54:57 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-02-11 13:01:04 +0000
commit579422faaad76b12341a725320da65fcabb3cf7b (patch)
tree3f7344270460c608b49541698e239f3ac805b46c
parent4e5601ac1c7aec6aba9ba09fe7adb7a0462da2f0 (diff)
Fusion: fix buttons colors
Make Active and Disabled colors closer to Widgets' Fusion style. Task-number: QTBUG-70819 Change-Id: I61cf22eb4449b5443fa71349da8df2ff57ee9158 Reviewed-by: Nils Jeisecke <nils.jeisecke@saltation.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--src/imports/controls/fusion/qquickfusiontheme.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/controls/fusion/qquickfusiontheme.cpp b/src/imports/controls/fusion/qquickfusiontheme.cpp
index 107619bf..903758bb 100644
--- a/src/imports/controls/fusion/qquickfusiontheme.cpp
+++ b/src/imports/controls/fusion/qquickfusiontheme.cpp
@@ -45,7 +45,10 @@ void QQuickFusionTheme::initialize(QQuickTheme *theme)
{
const bool isDarkSystemTheme = QQuickStylePrivate::isDarkSystemTheme();
QPalette systemPalette;
- systemPalette.setColor(QPalette::ButtonText, isDarkSystemTheme ? Qt::white : Qt::black);
+ systemPalette.setColor(QPalette::Active, 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);
}