From fc0ad0aca28095991ab0f1a40084f0bd15eb5263 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Mon, 24 Sep 2012 18:18:41 +0200 Subject: [PATCH] Fixed selected menu item (& Co.) text color On Mac, highlighted text remains the same color as normal text. That's not the case for menu and combobox items. Change-Id: I3efe2547413f77921524b833b4b10cf2d533e110 Reviewed-by: Jens Bache-Wiig --- src/widgets/styles/qmacstyle_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm index cd46bd1..ff96db6 100644 --- a/src/widgets/styles/qmacstyle_mac.mm +++ b/src/widgets/styles/qmacstyle_mac.mm @@ -4218,7 +4218,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter if (!enabled) p->setPen(mi->palette.text().color()); else if (active) - p->setPen(mi->palette.highlightedText().color()); + p->setPen(QColor(Qt::white)); // QPalette's API is incomplete for this case else p->setPen(mi->palette.buttonText().color()); -- 2.7.4