Core: Use themed color for "highlightWidget" in ManhattanStyle

Change-Id: I0bd594fec2a0fe9b3093d7c6a4439657c78dfff6
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Alessandro Portale
2020-01-22 17:58:24 +01:00
parent 0d991985d6
commit 8d722587b9

View File

@@ -909,8 +909,10 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
QStyleOptionToolButton label = *toolbutton; QStyleOptionToolButton label = *toolbutton;
label.palette = panelPalette(option->palette, lightColored(widget)); label.palette = panelPalette(option->palette, lightColored(widget));
if (widget && widget->property("highlightWidget").toBool()) if (widget && widget->property("highlightWidget").toBool()) {
label.palette.setColor(QPalette::ButtonText, Qt::red); label.palette.setColor(QPalette::ButtonText,
creatorTheme()->color(Theme::IconsWarningToolBarColor));
}
int fw = pixelMetric(PM_DefaultFrameWidth, option, widget); int fw = pixelMetric(PM_DefaultFrameWidth, option, widget);
label.rect = button.adjusted(fw, fw, -fw, -fw); label.rect = button.adjusted(fw, fw, -fw, -fw);