|
@@ -2215,7 +2215,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|
|
|
|
|
// adaptive script theme constants
|
|
// adaptive script theme constants
|
|
// for comments and elements with lower relevance
|
|
// for comments and elements with lower relevance
|
|
- const Color dim_color = Color(font_color.r, font_color.g, font_color.b, 0.5);
|
|
|
|
|
|
+ const Color dim_color = Color(font_color, 0.5);
|
|
|
|
|
|
const float mono_value = mono_color.r;
|
|
const float mono_value = mono_color.r;
|
|
const Color alpha1 = Color(mono_value, mono_value, mono_value, 0.07);
|
|
const Color alpha1 = Color(mono_value, mono_value, mono_value, 0.07);
|
|
@@ -2229,6 +2229,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|
const Color engine_type_color = dark_theme ? Color(0.56, 1, 0.86) : Color(0.11, 0.55, 0.4);
|
|
const Color engine_type_color = dark_theme ? Color(0.56, 1, 0.86) : Color(0.11, 0.55, 0.4);
|
|
const Color user_type_color = dark_theme ? Color(0.78, 1, 0.93) : Color(0.18, 0.45, 0.4);
|
|
const Color user_type_color = dark_theme ? Color(0.78, 1, 0.93) : Color(0.18, 0.45, 0.4);
|
|
const Color comment_color = dark_theme ? dim_color : Color(0.08, 0.08, 0.08, 0.5);
|
|
const Color comment_color = dark_theme ? dim_color : Color(0.08, 0.08, 0.08, 0.5);
|
|
|
|
+ const Color doc_comment_color = dark_theme ? Color(0.6, 0.7, 0.8, 0.8) : Color(0.15, 0.15, 0.4, 0.7);
|
|
const Color string_color = dark_theme ? Color(1, 0.93, 0.63) : Color(0.6, 0.42, 0);
|
|
const Color string_color = dark_theme ? Color(1, 0.93, 0.63) : Color(0.6, 0.42, 0);
|
|
|
|
|
|
// Use the brightest background color on a light theme (which generally uses a negative contrast rate).
|
|
// Use the brightest background color on a light theme (which generally uses a negative contrast rate).
|
|
@@ -2272,6 +2273,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|
setting->set_initial_value("text_editor/theme/highlighting/engine_type_color", engine_type_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/engine_type_color", engine_type_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/user_type_color", user_type_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/user_type_color", user_type_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/comment_color", comment_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/comment_color", comment_color, true);
|
|
|
|
+ setting->set_initial_value("text_editor/theme/highlighting/doc_comment_color", doc_comment_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/string_color", string_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/string_color", string_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/background_color", te_background_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/background_color", te_background_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/completion_background_color", completion_background_color, true);
|
|
setting->set_initial_value("text_editor/theme/highlighting/completion_background_color", completion_background_color, true);
|