forked from qt-creator/qt-creator
Theme: Remove InvalidColor
It's not defined anyway. Use ProjectExplorer_TaskWarn_TextMarkColor as default text mark color. Change-Id: I1c7f76f0a6dc83338798cdd7450e1468e8ce39a7 Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
34008650df
commit
6d67f9429e
@@ -227,7 +227,7 @@ bool TextMarkRegistry::remove(TextMark *mark)
|
||||
|
||||
Theme::Color TextMarkRegistry::categoryColor(Id category)
|
||||
{
|
||||
return m_colors.contains(category) ? m_colors[category] : Theme::InvalidColor;
|
||||
return m_colors.value(category, Theme::ProjectExplorer_TaskWarn_TextMarkColor);
|
||||
}
|
||||
|
||||
void TextMarkRegistry::setCategoryColor(Id category, Theme::Color color)
|
||||
|
||||
Reference in New Issue
Block a user