diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 14f161c1e7c..3f4401d6c9d 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -233,6 +233,14 @@ void editor_register_and_generate_icons(Ref p_theme, bool p_dark_theme = exceptions.insert("StatusSuccess"); exceptions.insert("StatusWarning"); exceptions.insert("OverbrightIndicator"); + + // Prevents Code Editor icons from changing + exceptions.insert("GuiTab"); + exceptions.insert("GuiSpace"); + exceptions.insert("GuiEllipsis"); + exceptions.insert("TextEditFold"); + exceptions.insert("TextEditFolded"); + exceptions.insert("TextEditorPlay"); } // These ones should be converted even if we are using a dark theme. @@ -986,8 +994,8 @@ Ref create_editor_theme(const Ref p_theme) { theme->set_constant("side_margin", "TabContainer", 0); theme->set_icon("tab", "TextEdit", theme->get_icon("GuiTab", "EditorIcons")); theme->set_icon("space", "TextEdit", theme->get_icon("GuiSpace", "EditorIcons")); - theme->set_icon("folded", "TextEdit", theme->get_icon("GuiTreeArrowRight", "EditorIcons")); - theme->set_icon("fold", "TextEdit", theme->get_icon("GuiTreeArrowDown", "EditorIcons")); + theme->set_icon("folded", "TextEdit", theme->get_icon("TextEditFolded", "EditorIcons")); + theme->set_icon("fold", "TextEdit", theme->get_icon("TextEditFold", "EditorIcons")); theme->set_color("font_color", "TextEdit", font_color); theme->set_color("font_color_readonly", "TextEdit", font_color_readonly); theme->set_color("caret_color", "TextEdit", font_color); @@ -1322,7 +1330,7 @@ Ref create_editor_theme(const Ref p_theme) { const float mono_value = mono_color.r; const Color alpha1 = Color(mono_value, mono_value, mono_value, 0.07); const Color alpha2 = Color(mono_value, mono_value, mono_value, 0.14); - const Color alpha3 = Color(mono_value, mono_value, mono_value, 0.7); + const Color alpha3 = Color(mono_value, mono_value, mono_value, 0.27); // editor main color const Color main_color = dark_theme ? Color(0.34, 0.7, 1.0) : Color(0.02, 0.5, 1.0); diff --git a/editor/icons/icon_text_edit_fold.svg b/editor/icons/icon_text_edit_fold.svg new file mode 100644 index 00000000000..0024a1256bd --- /dev/null +++ b/editor/icons/icon_text_edit_fold.svg @@ -0,0 +1 @@ + diff --git a/editor/icons/icon_text_edit_folded.svg b/editor/icons/icon_text_edit_folded.svg new file mode 100644 index 00000000000..f2a4bd44e02 --- /dev/null +++ b/editor/icons/icon_text_edit_folded.svg @@ -0,0 +1 @@ + diff --git a/editor/icons/icon_text_editor_play.svg b/editor/icons/icon_text_editor_play.svg new file mode 100644 index 00000000000..5a1d195530f --- /dev/null +++ b/editor/icons/icon_text_editor_play.svg @@ -0,0 +1 @@ + diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 4ed2f8c0053..538810000e2 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -5444,7 +5444,7 @@ void TextEdit::_update_caches() { cache.folded_icon = get_icon("folded"); cache.can_fold_icon = get_icon("fold"); cache.folded_eol_icon = get_icon("GuiEllipsis", "EditorIcons"); - cache.executing_icon = get_icon("MainPlay", "EditorIcons"); + cache.executing_icon = get_icon("TextEditorPlay", "EditorIcons"); text.set_font(cache.font); if (syntax_highlighter) {