Merge pull request #95278 from Giganzo/fix-huge-tscn-icon-in-filesystem-split-mode-list-view

Fix huge tscn icon in FileSystem split mode using list view
This commit is contained in:
Rémi Verschelde 2024-08-16 14:33:18 +02:00
commit 9527da4329
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -953,7 +953,8 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
files->set_max_columns(1);
files->set_max_text_lines(1);
files->set_fixed_column_width(0);
files->set_fixed_icon_size(Size2());
const int icon_size = get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor));
files->set_fixed_icon_size(Size2(icon_size, icon_size));
}
Ref<Texture2D> folder_icon = (use_thumbnails) ? folder_thumbnail : get_theme_icon(SNAME("folder"), SNAME("FileDialog"));