Merge pull request #55013 from Calinou/shader-editor-tweak-builtin-color-3.x

Tweak the built-ins color highlighting in the shader editor (take 2)
This commit is contained in:
Rémi Verschelde 2021-11-16 07:36:25 +01:00 committed by GitHub
commit 97f4d25841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.