From 341740c0bfbca3e94013c80b80b6b06e1eb8d84c Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 6 Feb 2020 10:56:43 +0800 Subject: [PATCH] Centers icon vertically in project list (cherry picked from commit c1011178c03354dd01972f4540bc07281591ff39) --- editor/project_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 30e31cb530f..1d2e57aefad 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1316,6 +1316,7 @@ void ProjectList::create_project_item_control(int p_index) { // The project icon may not be loaded by the time the control is displayed, // so use a loading placeholder. tf->set_texture(get_icon("ProjectIconLoading", "EditorIcons")); + tf->set_v_size_flags(SIZE_SHRINK_CENTER); if (item.missing) { tf->set_modulate(Color(1, 1, 1, 0.5)); }