From a0699bb6ecd1f0bea61ee6ee1c3ab8cdf080dec2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 16 Nov 2021 01:01:43 +0100 Subject: [PATCH] Tweak the built-ins color highlighting in the shader editor (take 2) The new color is more distinguishable from other variables and symbols. --- editor/plugins/shader_editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 73ebb437e74..e696560ae8d 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -172,8 +172,10 @@ void ShaderTextEditor::_load_theme_settings() { } } + const Color user_type_color = EDITOR_GET("text_editor/highlighting/user_type_color"); + for (List::Element *E = built_ins.front(); E; E = E->next()) { - get_text_edit()->add_keyword_color(E->get(), member_variable_color); + get_text_edit()->add_keyword_color(E->get(), user_type_color); } // Colorize comments.