forked from qt-creator/qt-creator
macOS: Fix label color in tool buttons
For example the "Ignore Whitespace" button in the diff viewer Change-Id: I9882b9d2f3e22635bfbb047904ef284dd515db9f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -857,7 +857,11 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case CE_ToolButtonLabel:
|
||||||
|
// Directly use QCommonStyle to circumvent funny painting in QMacStyle
|
||||||
|
// which ignores the palette and adds an alpha
|
||||||
|
QCommonStyle::drawControl(element, option, painter, widget);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
QProxyStyle::drawControl(element, option, painter, widget);
|
QProxyStyle::drawControl(element, option, painter, widget);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user