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 <jens.bache-wiig@digia.com>bb10
parent
65b39b3cdc
commit
fc0ad0aca2
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue