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_TaskError_TextMarkColor=ffff4040
ProjectExplorer_TaskWarn_TextMarkColor=ffffff40 ProjectExplorer_TaskWarn_TextMarkColor=ffffff40
ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffceff40
[Flags] [Flags]
ComboBoxDrawTextShadow=false ComboBoxDrawTextShadow=false
DerivePaletteFromTheme=true DerivePaletteFromTheme=true

View File

@@ -131,6 +131,9 @@ TextEditor_CurrentLine_ScrollBarColor=ff404040
ProjectExplorer_TaskError_TextMarkColor=ffff0000 ProjectExplorer_TaskError_TextMarkColor=ffff0000
ProjectExplorer_TaskWarn_TextMarkColor=ffffa500 ProjectExplorer_TaskWarn_TextMarkColor=ffffa500
ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffc6c132
[Flags] [Flags]
ComboBoxDrawTextShadow=true ComboBoxDrawTextShadow=true
DerivePaletteFromTheme=false DerivePaletteFromTheme=false

View File

@@ -195,7 +195,11 @@ public:
/* ProjectExplorer Plugin */ /* ProjectExplorer Plugin */
ProjectExplorer_TaskError_TextMarkColor, ProjectExplorer_TaskError_TextMarkColor,
ProjectExplorer_TaskWarn_TextMarkColor ProjectExplorer_TaskWarn_TextMarkColor,
/* ClangCodeModel Plugin */
ClangCodeModel_Error_TextMarkColor,
ClangCodeModel_Warning_TextMarkColor
}; };
enum Gradient { enum Gradient {

View File

@@ -50,12 +50,12 @@
namespace ClangCodeModel { namespace ClangCodeModel {
namespace Internal { namespace Internal {
void initializeTextMarks() static void initializeTextMarks()
{ {
TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_WARNING), 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), 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) bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *errorMessage)
@@ -91,6 +91,8 @@ bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *err
// Register ModelManagerSupportProvider // Register ModelManagerSupportProvider
cppModelManager->addModelManagerSupportProvider(&m_modelManagerSupportProvider); cppModelManager->addModelManagerSupportProvider(&m_modelManagerSupportProvider);
initializeTextMarks();
return true; return true;
} }