Browse Source

Make the Open Project Folder button more visible in the project manager

This closes https://github.com/godotengine/godot-proposals/issues/619.

(cherry picked from commit 04cbfbe6b2745221c946fbd791b79ac933b859ec)
Hugo Locurcio 4 năm trước cách đây
mục cha
commit
67acdfcf02
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      editor/project_manager.cpp

+ 2 - 3
editor/project_manager.cpp

@@ -1378,11 +1378,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_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);