mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #135] ColorButton: color format #83
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mischnic on GitHub (May 17, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/135
At first the onChanged events's color object returns the component values from 0-255 (but the preview on the button itself is always white - are you setting the color of underlying uiColorButton using 0-255?). Moving the silder below the color wheel makes the button emit colors from 0-1 (the preview works but the area expected 0-255).
Same code as in the previous issue:
Not an issue with libui-node:
@mischnic commented on GitHub (May 17, 2018):
Ok, I found the issue. What should the color format be? 0-255 or 0-1?
@khanhas commented on GitHub (May 18, 2018):
I also want to report a problem with ColorButton.
Init
coloroption is converted all wrong, both in hex and rgb format.Example code:
And in color picker:
You can see R, G, B 0-255 range values are mistakenly set in 0-1 range boxes.
@mischnic, I wonder if your commit fixes this problem?
@mischnic commented on GitHub (May 18, 2018):
@khanhas Yes, it does.