From 8d722587b9f9ca946b47b337ac2a840ac8a620b6 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 22 Jan 2020 17:58:24 +0100 Subject: [PATCH] Core: Use themed color for "highlightWidget" in ManhattanStyle Change-Id: I0bd594fec2a0fe9b3093d7c6a4439657c78dfff6 Reviewed-by: David Schulz --- src/plugins/coreplugin/manhattanstyle.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index b905d2a079f..aa60cf34570 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -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);