diff options
author | Marco Bubke <[email protected]> | 2015-09-21 16:09:02 +0200 |
---|---|---|
committer | Marco Bubke <[email protected]> | 2015-09-23 16:11:16 +0000 |
commit | b711b3d6e78125f43c43cc1ce0080d71b7a699a5 (patch) | |
tree | 830cf41f5676a572181b760809bcf9bb6eb7517c /src/plugins/clangcodemodel/clangcodemodelplugin.cpp | |
parent | 0c53561c757d957e729a7161bd8cb0ce70605dbd (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index f935b2ca5a2..b69366ee4c2 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -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; } |