mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Centers icon vertically in project list
This commit is contained in:
parent
c358399f81
commit
c1011178c0
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user