Преглед изворни кода

Tweak the built-ins color highlighting in the shader editor (take 2)

The new color is more distinguishable from other variables and
symbols.
Hugo Locurcio пре 3 година
родитељ
комит
a0699bb6ec
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      editor/plugins/shader_editor_plugin.cpp

+ 3 - 1
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<String>::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.