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:
Marco Bubke
2015-09-21 16:09:02 +02:00
parent 0c53561c75
commit b711b3d6e7
4 changed files with 16 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 {

View File

@@ -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;
}