浏览代码

Centers icon vertically in project list

(cherry picked from commit c1011178c03354dd01972f4540bc07281591ff39)
Haoyu Qiu 5 年之前
父节点
当前提交
341740c0bf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/project_manager.cpp

+ 1 - 0
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));
 	}