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

This closes https://github.com/godotengine/godot-proposals/issues/619.
This commit is contained in:
Hugo Locurcio 2021-02-01 20:02:28 +01:00
parent 0f4e2cd40c
commit 04cbfbe6b2
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1375,11 +1375,10 @@ void ProjectList::create_project_item_control(int p_index) {
vb->add_child(path_hb); vb->add_child(path_hb);
Button *show = memnew(Button); 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_icon(get_theme_icon(!item.missing ? "Load" : "FileBroken", "EditorIcons"));
show->set_flat(true);
if (!item.grayed) { 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)); show->set_modulate(Color(1, 1, 1, 0.5));
} }
path_hb->add_child(show); path_hb->add_child(show);