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

Fix hue and saturation getting reset when draging value slider to zero #473

Merged

Conversation

kevinms
Copy link
Contributor

@kevinms kevinms commented Apr 1, 2021

The color picker widget in HSV mode was resetting HS when you drag V to zero.

Thought about changing Tools.assign_color() to take an optional signal_color_changed boolean. But, I can imagine other objects connected to Tool.color_changed that may want dynamic updates as you use a color picker in the future. So the fix here is to temporarily disconnect ColorAndToolOptions from Tool.color_changed while the popup is active. This isolates the fix to the thing that needs fixing.

Bug:

hsv-slider-bug

Fix:

hsv-slider-fix

Copy link
Member

@OverloadedOrama OverloadedOrama left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@OverloadedOrama OverloadedOrama merged commit 05eda55 into Orama-Interactive:master Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants