-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Include X11 colors in NAMED_COLORS #175
base: master
Are you sure you want to change the base?
Conversation
Thank you very much for your contribution. Before I take a closer look, I have one question:
Can we maybe come up with a different CLI that is a bit more future proof? Imagine we want to add other lists of named colors in the future. Maybe some of these lists are enabled by default, others not. Instead of "CSS colors only", maybe we could so something like |
You're right, I'll take a look at it. |
Hmm, I just discovered that there are a few clashes between the CSS and X11 color names, I don't know how to handle them properly: Currently CSS colors are not duplicated as X11 colors (but basically almost all of them are), I thought the For example: green
Does it worth to duplicate basically all the CSS colors in the X11 list to handle these claches? |
Hm. That's probably the best option for now. I wouldn't mind the duplication. The question is how to resolve those conflicts if a color name is specified on the input? Maybe we should have a top-level option |
I've added the conflicting colors as well, but since the colors are deduped, only their "first" name will be displayed, but I think that's OK. (For example using X11 names, #00ff00 will be reported as |
Ok, now the name resolution of the clashing colors does not work properly, currently the parser checks only the named color list - and does not care about any configuration or arguments - and returns the first matching. So when I issue the Shall I try to change |
Sorry for leaving this hanging for so long. Are you still interested in finishing this? |
Ah, completely forgot about this. |
--color-names
argument to select color name list(s) [css, x11]Closes #138.