-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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 class icons to script list #96865
base: master
Are you sure you want to change the base?
Conversation
Draws icons representing the script's or doc page's class on the right side of the script editor. Supports custom icons and icons inherited from parent class.
aabb176
to
3fefbb0
Compare
I remember when this was being discussed as different icons other than the gear were added. Given what was argued last time, I suppose having the icon on the right side is a good call. Part of me wishes it weren't the case. Doing it this way harshly reduces horizontal space, which the editor is already sorely missing, and potentially introduces clutter. A bit of a sensory overload, and whatnot. I can see this being an Editor Setting, but keeping it off by default is a nasty choice that severely harms discoverability. I can also see a compromise, where only the documentation pages have an icon, at least by default. |
Yeah, when this idea was approved (comment), it was mentioned that the preferred side is on the right, so I made it so. There was also mention of it functioning as a button to open docs, but I'm not fancy of that idea seeing it as easily misclicked (should be added to context menu though, I always wonder how we are supposed to open custom class docs). Editor setting could be good to have, as this does add some visual noise that not everyone will appreciate. I think that the benefit of finding right scripts at glance outweigh the cons for most people though. And who doesn't love to see their custom |
Thank you for linking to the original proposal. I commented a mockup for potentially further discussion.
Unrelated to this PR, but yeah... |
I also like the original idea in the proposal more, or from @Mickeon. Two icons are much more distracting. And is very unusual for a list, not just in Godot but also in any other application. |
|
Interesting. I'll look into it if I'll continue work in this branch... Consensus seems to be that this approach ended up visually too noisy, but alternatives aren't yet agreed on either. |
Here is the workflow that created the build. |
Implements godotengine/godot-proposals#3557
Draws icons representing the script's or doc page's class on the right side of the script editor. Supports custom icons and icons inherited from parent class.