forked from qt-creator/qt-creator
Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -585,8 +585,7 @@ void SubmitEditorWidget::verifyDescription()
|
||||
}
|
||||
|
||||
auto fontColor = [](Utils::Theme::Color color) {
|
||||
return QString("<font color=\"%1\">")
|
||||
.arg(Utils::creatorTheme()->color(color).name());
|
||||
return QString("<font color=\"%1\">").arg(Utils::creatorColor(color).name());
|
||||
};
|
||||
const QString hint = fontColor(Utils::Theme::OutputPanes_TestWarnTextColor);
|
||||
const QString warning = fontColor(Utils::Theme::TextColorError);
|
||||
|
||||
Reference in New Issue
Block a user