浏览代码

Merge pull request #45642 from Calinou/project-manager-increase-folder-button-visibility

Make the Open Project Folder button more visible in the project manager
Rémi Verschelde 4 年之前
父节点
当前提交
46a2cc6141
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      editor/project_manager.cpp

+ 2 - 3
editor/project_manager.cpp

@@ -1375,11 +1375,10 @@ void ProjectList::create_project_item_control(int p_index) {
 	vb->add_child(path_hb);
 
 	Button *show = memnew(Button);
-	// Display a folder icon if the project directory can be opened, or a "broken file" icon if it can't
+	// Display a folder icon if the project directory can be opened, or a "broken file" icon if it can't.
 	show->set_icon(get_theme_icon(!item.missing ? "Load" : "FileBroken", "EditorIcons"));
-	show->set_flat(true);
 	if (!item.grayed) {
-		// Don't make the icon less prominent if the parent is already grayed out
+		// Don't make the icon less prominent if the parent is already grayed out.
 		show->set_modulate(Color(1, 1, 1, 0.5));
 	}
 	path_hb->add_child(show);