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

Print warning when custom class icon size exceeds 32x32, update docs mentioning recommended size #69074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

souplamp
Copy link
Contributor

@souplamp souplamp commented Nov 23, 2022

Implements #68962 (comment).

Prints a warning when a custom class icon is greater than the recommended size of 32x32. Also updates the docs to mention that 32x32 is the recommended size as it looks good on hiDPI displays.

Ex.
warning

@souplamp

This comment was marked as outdated.

editor/editor_node.cpp Outdated Show resolved Hide resolved
editor/editor_node.cpp Outdated Show resolved Hide resolved
Warn user of `@icon` sizes larger than 32x32. This resolution is good
for hiDPI displays; higher resolutions effect performance.
Make mention of this in the docs as well.
@YuriSizov
Copy link
Contributor

YuriSizov commented Mar 29, 2023

After #75472 this PR will not be possible, because we don't load the image directly. But we should still add a note to the documentation. Can you please change your PR to only make documentation changes?

Edit: Not sure why I said that it would be impossible, as we can get the size of the loaded texture. However, there is no reason to throw a warning after #75472, as we would handle this gracefully throughout the editor. So I still think we should reduce this PR to the documentation changes.

@YuriSizov YuriSizov modified the milestones: 4.1, 4.x Jun 14, 2023
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.

4 participants