diff options
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r-- | editor/editor_help.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 3dc8584096..f58e471633 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -3969,12 +3969,12 @@ void EditorHelpHighlighter::reset_cache() { #ifdef MODULE_GDSCRIPT_ENABLED highlight_data_caches[LANGUAGE_GDSCRIPT].clear(); - text_edits[LANGUAGE_GDSCRIPT]->add_theme_color_override("font_color", text_color); + text_edits[LANGUAGE_GDSCRIPT]->add_theme_color_override(SceneStringName(font_color), text_color); #endif #ifdef MODULE_MONO_ENABLED highlight_data_caches[LANGUAGE_CSHARP].clear(); - text_edits[LANGUAGE_CSHARP]->add_theme_color_override("font_color", text_color); + text_edits[LANGUAGE_CSHARP]->add_theme_color_override(SceneStringName(font_color), text_color); #endif } @@ -3983,7 +3983,7 @@ EditorHelpHighlighter::EditorHelpHighlighter() { #ifdef MODULE_GDSCRIPT_ENABLED TextEdit *gdscript_text_edit = memnew(TextEdit); - gdscript_text_edit->add_theme_color_override("font_color", text_color); + gdscript_text_edit->add_theme_color_override(SceneStringName(font_color), text_color); Ref<GDScript> gdscript; gdscript.instantiate(); @@ -4000,7 +4000,7 @@ EditorHelpHighlighter::EditorHelpHighlighter() { #ifdef MODULE_MONO_ENABLED TextEdit *csharp_text_edit = memnew(TextEdit); - csharp_text_edit->add_theme_color_override("font_color", text_color); + csharp_text_edit->add_theme_color_override(SceneStringName(font_color), text_color); // See GH-89610. //Ref<CSharpScript> csharp; @@ -4094,7 +4094,7 @@ void FindBar::_notification(int p_what) { hide_button->set_texture_hover(get_editor_theme_icon(SNAME("Close"))); hide_button->set_texture_pressed(get_editor_theme_icon(SNAME("Close"))); hide_button->set_custom_minimum_size(hide_button->get_texture_normal()->get_size()); - matches_label->add_theme_color_override("font_color", results_count > 0 ? get_theme_color(SNAME("font_color"), SNAME("Label")) : get_theme_color(SNAME("error_color"), EditorStringName(Editor))); + matches_label->add_theme_color_override(SceneStringName(font_color), results_count > 0 ? get_theme_color(SceneStringName(font_color), SNAME("Label")) : get_theme_color(SNAME("error_color"), EditorStringName(Editor))); } break; case NOTIFICATION_VISIBILITY_CHANGED: { @@ -4162,7 +4162,7 @@ void FindBar::_update_matches_label() { } else { matches_label->show(); - matches_label->add_theme_color_override("font_color", results_count > 0 ? get_theme_color(SNAME("font_color"), SNAME("Label")) : get_theme_color(SNAME("error_color"), EditorStringName(Editor))); + matches_label->add_theme_color_override(SceneStringName(font_color), results_count > 0 ? get_theme_color(SceneStringName(font_color), SNAME("Label")) : get_theme_color(SNAME("error_color"), EditorStringName(Editor))); matches_label->set_text(vformat(results_count == 1 ? TTR("%d match.") : TTR("%d matches."), results_count)); } } |