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:
@@ -120,8 +120,7 @@ void GitSubmitEditorWidget::setPanelInfo(const GitSubmitEditorPanelInfo &info)
|
||||
{
|
||||
m_gitSubmitPanel->repositoryLabel->setText(info.repository.toUserOutput());
|
||||
if (info.branch.contains("(no branch)")) {
|
||||
const QString errorColor =
|
||||
Utils::creatorTheme()->color(Utils::Theme::TextColorError).name();
|
||||
const QString errorColor = Utils::creatorColor(Utils::Theme::TextColorError).name();
|
||||
m_gitSubmitPanel->branchLabel->setText(QString::fromLatin1("<span style=\"color:%1\">%2</span>")
|
||||
.arg(errorColor, Tr::tr("Detached HEAD")));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user