1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

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

The new color is more distinguishable from other variables and
symbols.
This commit is contained in:
Hugo Locurcio
2021-11-16 01:01:43 +01:00
parent 458f5b42a6
commit a0699bb6ec

View File

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