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:
@@ -179,7 +179,7 @@ void CMakeProcess::stop()
|
||||
QString addCMakePrefix(const QString &str)
|
||||
{
|
||||
static const QString prefix
|
||||
= ansiColoredText(Constants::OUTPUT_PREFIX, creatorTheme()->color(Theme::Token_Text_Muted));
|
||||
= ansiColoredText(Constants::OUTPUT_PREFIX, creatorColor(Theme::Token_Text_Muted));
|
||||
return prefix + str;
|
||||
}
|
||||
|
||||
|
||||
@@ -570,8 +570,8 @@ QVariant ConfigModelTreeItem::data(int column, int role) const
|
||||
mismatch = !dataItem->kitValue.isEmpty() && dataItem->kitValue != value;
|
||||
else
|
||||
mismatch = !dataItem->initialValue.isEmpty() && dataItem->initialValue != value;
|
||||
return Utils::creatorTheme()->color(mismatch ? Utils::Theme::TextColorError
|
||||
: Utils::Theme::TextColorNormal);
|
||||
return Utils::creatorColor(mismatch ? Utils::Theme::TextColorError
|
||||
: Utils::Theme::TextColorNormal);
|
||||
};
|
||||
|
||||
const QString value = currentValue();
|
||||
|
||||
Reference in New Issue
Block a user