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

Add RGB codes as an option #32

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MyristicaFragrans
Copy link

An option to show 0-255 RGB codes alongside the hex codes has been added and implemented. This is useful for picking colors for programs that do not accept hex code, in my case Raylib, reducing a conversion step and making color-color easier to use for in these cases.
Screenshot showing "RGB Code" checkbox alongside "Hex Code"

Because the RGB codes tend to be longer, it was running into the reference color dialogue at smaller resolutions, so I moved it to the bottom-right corner. I also gave the black and white contrast ratios their own lines.
Screenshot showing a swatch with the RGB code and the relocated reference color
Screenshot showing how the previous image looks at a smaller width

The interface can currently scale to a width of ~1220 pixels before lines start wrapping. A potential solution would be to increase the minimum width of the color palette areas when the RGB codes are shown, though I have not yet found where this is located.

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.

1 participant