From 579422faaad76b12341a725320da65fcabb3cf7b Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 6 Feb 2019 12:54:57 +0100 Subject: 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 Reviewed-by: Richard Moe Gustavsen --- src/imports/controls/fusion/qquickfusiontheme.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/imports/controls/fusion') 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); } -- cgit v1.2.3