forked from qt-creator/qt-creator
Core: Use themed color for "highlightWidget" in ManhattanStyle
Change-Id: I0bd594fec2a0fe9b3093d7c6a4439657c78dfff6 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -909,8 +909,10 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
|
||||
QStyleOptionToolButton label = *toolbutton;
|
||||
|
||||
label.palette = panelPalette(option->palette, lightColored(widget));
|
||||
if (widget && widget->property("highlightWidget").toBool())
|
||||
label.palette.setColor(QPalette::ButtonText, Qt::red);
|
||||
if (widget && widget->property("highlightWidget").toBool()) {
|
||||
label.palette.setColor(QPalette::ButtonText,
|
||||
creatorTheme()->color(Theme::IconsWarningToolBarColor));
|
||||
}
|
||||
int fw = pixelMetric(PM_DefaultFrameWidth, option, widget);
|
||||
label.rect = button.adjusted(fw, fw, -fw, -fw);
|
||||
|
||||
|
Reference in New Issue
Block a user