You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Highlight singletons and class_names in GDScript
Also, implement a small QoL change for auto-typed variables. Closes #5739
This commit is contained in:
@@ -1130,7 +1130,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
const Color symbol_color = Color(0.34, 0.57, 1.0).linear_interpolate(mono_color, dark_theme ? 0.5 : 0.3);
|
||||
const Color keyword_color = Color(1.0, 0.44, 0.52);
|
||||
const Color basetype_color = dark_theme ? Color(0.26, 1.0, 0.76) : Color(0.0, 0.76, 0.38);
|
||||
const Color type_color = basetype_color.linear_interpolate(mono_color, dark_theme ? 0.7 : 0.5);
|
||||
const Color type_color = basetype_color.linear_interpolate(mono_color, dark_theme ? 0.4 : 0.3);
|
||||
const Color usertype_color = basetype_color.linear_interpolate(mono_color, dark_theme ? 0.7 : 0.5);
|
||||
const Color comment_color = dim_color;
|
||||
const Color string_color = (dark_theme ? Color(1.0, 0.85, 0.26) : Color(1.0, 0.82, 0.09)).linear_interpolate(mono_color, dark_theme ? 0.5 : 0.3);
|
||||
|
||||
@@ -1169,6 +1170,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
setting->set_initial_value("text_editor/highlighting/keyword_color", keyword_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/base_type_color", basetype_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/engine_type_color", type_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/user_type_color", usertype_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/comment_color", comment_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/string_color", string_color, true);
|
||||
setting->set_initial_value("text_editor/highlighting/background_color", te_background_color, true);
|
||||
|
||||
Reference in New Issue
Block a user