From cd29cdab154cad8f66902f56ddf0c1a3124ddcc0 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 9 Aug 2018 11:08:16 +0200 Subject: [PATCH] Scale the project manager window size with the editor scale This also makes the project search field slightly larger. --- editor/project_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 95d39953cfd..1c4e574a088 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1757,6 +1757,8 @@ ProjectManager::ProjectManager() { editor_set_scale(custom_display_scale); } break; } + + OS::get_singleton()->set_window_size(OS::get_singleton()->get_window_size() * MAX(1, EDSCALE)); } FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files")); @@ -1825,7 +1827,7 @@ ProjectManager::ProjectManager() { project_filter = memnew(ProjectListFilter); search_box->add_child(project_filter); project_filter->connect("filter_changed", this, "_load_recent_projects"); - project_filter->set_custom_minimum_size(Size2(250, 10)); + project_filter->set_custom_minimum_size(Size2(280, 10) * EDSCALE); search_tree_vb->add_child(search_box); PanelContainer *pc = memnew(PanelContainer);