Commit b711b3d6 authored by Marco Bubke's avatar Marco Bubke

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: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 0c53561c
......@@ -137,6 +137,9 @@ TextEditor_CurrentLine_ScrollBarColor=ffffffff
ProjectExplorer_TaskError_TextMarkColor=ffff4040
ProjectExplorer_TaskWarn_TextMarkColor=ffffff40
ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffceff40
[Flags]
ComboBoxDrawTextShadow=false
DerivePaletteFromTheme=true
......
......@@ -131,6 +131,9 @@ TextEditor_CurrentLine_ScrollBarColor=ff404040
ProjectExplorer_TaskError_TextMarkColor=ffff0000
ProjectExplorer_TaskWarn_TextMarkColor=ffffa500
ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffc6c132
[Flags]
ComboBoxDrawTextShadow=true
DerivePaletteFromTheme=false
......
......@@ -195,7 +195,11 @@ public:
/* ProjectExplorer Plugin */
ProjectExplorer_TaskError_TextMarkColor,
ProjectExplorer_TaskWarn_TextMarkColor
ProjectExplorer_TaskWarn_TextMarkColor,
/* ClangCodeModel Plugin */
ClangCodeModel_Error_TextMarkColor,
ClangCodeModel_Warning_TextMarkColor
};
enum Gradient {
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment