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

Add icon for local variable completion options #94196

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

HolonProduction
Copy link
Member

@HolonProduction HolonProduction commented Jul 11, 2024

Related to #92566

Local variables used the Variant icon till now, which spells out "any" (I think in 3.x it spelled out "var" which made more sense for those options). I guess I misremembered that.

image

Users could wrongly believe the icon has something to do with the detected type, therefore this PR introduces a new icon:

image

The icon is inspired by VSCodes Icon for local variables:
image

@dalexeev
Copy link
Member

This is a good change, but I'm not sure this icon is the best option. Personally, I associate brackets with packed arrays:

@Calinou
Copy link
Member

Calinou commented Jan 10, 2025

This makes sense to me, but I'd use a different icon as @dalexeev mentioned. I can't find the var icon OP mentioned in 3.x, so I remade it using Vector2i, Variant and Rect2's icons:

LocalVariable.svg.zip

@HolonProduction
Copy link
Member Author

Can't find it as well, must have misremembered that. I adjusted your icon to be 16x16 (the completion icons don't preserve aspect ratio):
image

Looks good to me.

@HolonProduction HolonProduction force-pushed the local-var-icon branch 2 times, most recently from be47d89 to d128c83 Compare January 11, 2025 16:01
Copy link
Member

@dalexeev dalexeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I find it good or at least acceptable. The "a" and "r" overlap a bit, but I don't think it's critical.

@akien-mga akien-mga merged commit aeffdd5 into godotengine:master Jan 12, 2025
20 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.

6 participants