This commit is contained in:
kleuter 2023-07-24 16:54:38 +02:00
parent bf2818fc37
commit 65ba497db1

View File

@ -3803,7 +3803,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
if (!hasMenu && ct != QMacStylePrivate::Button_SquareButton) { if (!hasMenu && ct != QMacStylePrivate::Button_SquareButton) {
if (isPressed || (isActive && isEnabled && ((btn.state & State_On) || isDefault))) { if (isPressed || (isActive && isEnabled && ((btn.state & State_On) || isDefault))) {
if (!isPressed && NSApplication.sharedApplication.active) { if (NSApplication.sharedApplication.active) {
// !isPressed means isActive, but it can differ from // !isPressed means isActive, but it can differ from
// the actual application state, so don't set white. // the actual application state, so don't set white.
btn.palette.setColor(QPalette::ButtonText, Qt::white); btn.palette.setColor(QPalette::ButtonText, Qt::white);