Skip to content

Commit

Permalink
Merge pull request #95278 from Giganzo/fix-huge-tscn-icon-in-filesyst…
Browse files Browse the repository at this point in the history
…em-split-mode-list-view

Fix huge tscn icon in FileSystem split mode using list view
  • Loading branch information
akien-mga committed Aug 16, 2024
2 parents 252ba2e + 36c9d31 commit 9527da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 9527da4

Please sign in to comment.