-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 ColorPicker
shape icon is invisible until shape is changed
#84535
Fix ColorPicker
shape icon is invisible until shape is changed
#84535
Conversation
ColorPicker
shape icon is invisible
ColorPicker
shape icon is invisibleColorPicker
shape icon is invisible until shape is changed
fe0106a
to
15ec132
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Unrelated to this PR since this is what existing code looks like, but it seems like we're abusing the fact that IDs and indices of the shape popup match. Sometimes we're using SHAPE_*
constants to get the index and sometimes we're using them directly as index.
This should be cleaned up at some point (but again, that's not something this PR introduces or needs to address).
Ah i see they are being added into a vector in an order matching their enum value. I still need to familiarize myself with C++, setup my editor properly and test a faster building system but i could look into it when i am a bit more versed in a new pr. |
There are plans for refactoring the picker shapes entirely, as the remaining part of godotengine/godot-proposals#4353, but that's a bigger task. |
I noticed that hsl is the only mode that still displays a choser when none is set. I have not dug into the code but they may be hardcoded together |
Thanks! And congrats on your first merged Godot PR! |
Fixes #84519