forked from qt-creator/qt-creator
Clang: Set diagnostic colors for text editor scrollbar
The colors are different from issus colors to give the user a better impression. Change-Id: I0f9bdae8d96434512851460d4eef05e94280ee8e Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -50,12 +50,12 @@
|
||||
namespace ClangCodeModel {
|
||||
namespace Internal {
|
||||
|
||||
void initializeTextMarks()
|
||||
static void initializeTextMarks()
|
||||
{
|
||||
TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_WARNING),
|
||||
Utils::Theme::ProjectExplorer_TaskWarn_TextMarkColor);
|
||||
Utils::Theme::ClangCodeModel_Warning_TextMarkColor);
|
||||
TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_ERROR),
|
||||
Utils::Theme::ProjectExplorer_TaskError_TextMarkColor);
|
||||
Utils::Theme::ClangCodeModel_Error_TextMarkColor);
|
||||
}
|
||||
|
||||
bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
@@ -91,6 +91,8 @@ bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *err
|
||||
// Register ModelManagerSupportProvider
|
||||
cppModelManager->addModelManagerSupportProvider(&m_modelManagerSupportProvider);
|
||||
|
||||
initializeTextMarks();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user