Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix huge .tscn icon and icon in background of File System panel #92669

Conversation

Hilderin
Copy link
Contributor

@Hilderin Hilderin commented Jun 2, 2024

Fixes #92646

The problem was caused by a custom tag icon of the scene in the FileSystemDock ItemList. It was not possible to set a size for tag icons in ItemList, so I added the method set_fixed_tag_icon_size and called it in FileSystemDock.

Was able to reproduce and test with this project:
test-godot-cloud-icon.zip

I guess the black square comes from the blank scene:
image

@Hilderin Hilderin requested review from a team as code owners June 2, 2024 01:22
@KoBeWi
Copy link
Member

KoBeWi commented Jun 2, 2024

Icon position is wrong in RTL mode, because its calculated with unscaled texture size:
image

@Hilderin Hilderin force-pushed the fix-huge-tscn-icon-in-background-of-file-system-panel branch from f9a72d2 to 81395cf Compare June 2, 2024 13:12
@Hilderin
Copy link
Contributor Author

Hilderin commented Jun 2, 2024

Good point... Fixed it:
image

@akien-mga akien-mga changed the title Fix Huge .tscn Icon and icon in background of File System panel Fix huge .tscn icon and icon in background of File System panel Jun 3, 2024
@akien-mga akien-mga merged commit 9b4cfcb into godotengine:master Jun 3, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Huge .tscn Icon and icon in background of File System panel
4 participants