-
Notifications
You must be signed in to change notification settings - Fork 40
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
Mo' colors, mo' problems (extended color support?) #14
Comments
Hi @tehprofessor! Sorry for the delay here! Yep, I think this was just an oversight. I haven't needed to venture outside of the 8 colors yet myself in my projects. Your proposed changes to loosen the validations look very reasonable. Happy to merge that if you push up a PR. Please let me know if you run into any other limitations like this. This sort of feedback is really helpful :) |
Hi @tehprofessor , do you have any progress on your PR mentioned above? I just did some little attempts to remove the validations but with no luck. I'm thinking about diving deeper. |
@ndreynolds Sorry the delay on my part! Ha 😄 life comes at you fast. I'll get those changes pushed this weekend, thank you for the reply. @qhwa removing the validation causes a lot of other breakage if I remember correctly. The above diff was the simplest way I found to accomplish adding the extended colors... 🤘 |
Howdy!
First off I want to say thanks for all your hard work on Ratatouille and ExTermbox! They're both really awesome and useful packages.
Now onto my issue 😈
I was wondering if we this could be relaxed to accept any valid color in the extended color palette instead of only the eight, definitely supported everywhere but limited, colors:
ratatouille/lib/ratatouille/renderer/attributes.ex
Lines 8 to 14 in 3617e4a
I noticed ExTermbox doesn't have any problem with accepting valid integers outside of the eight named colors, but because of that validation Ratatouille does not. I'm imagining something like this would remedy it:
I'd be happy to push a PR if you're interested in this approach, or if you can give some guidance on an approach you'd like (or even why this is all a terrrrrrible idea).
Thank you for your time.
The text was updated successfully, but these errors were encountered: