From 7a6c0f0673a239dd84614281f163dd7da1ad1f7a Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 22 May 2013 18:54:10 +0200 Subject: QFusionStyle: fix highlight colors Respect the current color group of the palette, and fix the inactive highlight color. Task-number: QTBUG-30034 Change-Id: Iddfc15a2dd98d4588c6c587b7aaf64d88538fa28 Reviewed-by: Jens Bache-Wiig --- src/widgets/styles/qfusionstyle_p_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets/styles') diff --git a/src/widgets/styles/qfusionstyle_p_p.h b/src/widgets/styles/qfusionstyle_p_p.h index 4af4f18798..a76ed24a4a 100644 --- a/src/widgets/styles/qfusionstyle_p_p.h +++ b/src/widgets/styles/qfusionstyle_p_p.h @@ -102,13 +102,13 @@ public: QColor highlight(const QPalette &pal) const { if (isMacSystemPalette(pal)) return QColor(60, 140, 230); - return pal.color(QPalette::Active, QPalette::Highlight); + return pal.color(QPalette::Highlight); } QColor highlightedText(const QPalette &pal) const { if (isMacSystemPalette(pal)) return Qt::white; - return pal.color(QPalette::Active, QPalette::HighlightedText); + return pal.color(QPalette::HighlightedText); } QColor outline(const QPalette &pal) const { -- cgit v1.2.3