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

RGB color chooser resets hue to red when set to gray #884

Closed
Kyuuhachi opened this issue Nov 7, 2021 · 1 comment · Fixed by #886
Closed

RGB color chooser resets hue to red when set to gray #884

Kyuuhachi opened this issue Nov 7, 2021 · 1 comment · Fixed by #886
Labels
bug Something is broken

Comments

@Kyuuhachi
Copy link

When a RGB color chooser (for example via color_edit_button_rgb) is set to a gray shade (the left or bottom edges), the hue is changed to red. Presumably this is because the color is stored in the user-provided variable, which is RGB and thus cannot store the hue in that case. The best solution I can think of is having the widget store the hue separately (only used if the color is grayscale).

@Kyuuhachi Kyuuhachi added the bug Something is broken label Nov 7, 2021
@emilk
Copy link
Owner

emilk commented Nov 7, 2021

This is already implemented for color_edit_button_rgba_&, just not for color_edit_button_rgb (yet) due to laziness.

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

Successfully merging a pull request may close this issue.

2 participants