diff options
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r-- | editor/create_dialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index aee907854c..aaf106a1c7 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -457,11 +457,16 @@ void CreateDialog::_notification(int p_what) { search_box->call_deferred(SNAME("grab_focus")); // still not visible search_box->select_all(); } else { - EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size())); + EditorSettings::get_singleton()->set_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size())); } } break; case NOTIFICATION_THEME_CHANGED: { + const int icon_width = get_theme_constant(SNAME("class_icon_size"), SNAME("Editor")); + search_options->add_theme_constant_override("icon_max_width", icon_width); + favorites->add_theme_constant_override("icon_max_width", icon_width); + recent->set_fixed_icon_size(Size2(icon_width, icon_width)); + _update_theme(); } break; } @@ -805,4 +810,5 @@ CreateDialog::CreateDialog() { register_text_enter(search_box); set_hide_on_ok(false); + set_clamp_to_embedder(true); } |