diff options
Diffstat (limited to 'editor/gui/editor_object_selector.cpp')
-rw-r--r-- | editor/gui/editor_object_selector.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/gui/editor_object_selector.cpp b/editor/gui/editor_object_selector.cpp index 7cc830416c..9acd38bcf4 100644 --- a/editor/gui/editor_object_selector.cpp +++ b/editor/gui/editor_object_selector.cpp @@ -33,6 +33,7 @@ #include "editor/editor_data.h" #include "editor/editor_node.h" #include "editor/editor_scale.h" +#include "editor/editor_string_names.h" #include "editor/multi_node_edit.h" Size2 EditorObjectSelector::get_minimum_size() const { @@ -200,10 +201,10 @@ void EditorObjectSelector::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { update_path(); - int icon_size = get_theme_constant(SNAME("class_icon_size"), SNAME("Editor")); + int icon_size = get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)); current_object_icon->set_custom_minimum_size(Size2(icon_size, icon_size)); - current_object_label->add_theme_font_override("font", get_theme_font(SNAME("main"), SNAME("EditorFonts"))); + current_object_label->add_theme_font_override("font", get_theme_font(SNAME("main"), EditorStringName(EditorFonts))); sub_objects_icon->set_texture(get_theme_icon(SNAME("arrow"), SNAME("OptionButton"))); sub_objects_menu->add_theme_constant_override("icon_max_width", icon_size); } break; |