-
Notifications
You must be signed in to change notification settings - Fork 18
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
Consider tweaking colors to draw eye to differences #14
Comments
Chatted on Slack with @plexus about this one. Summary:
|
I'd be curious if puget allows rgb colors, so we can come up with a sensible scheme that isn't dependent on people's terminal configuration. |
Good question, it looks like puget might support 8-bit colors via I’ll try them out. |
Hiya @plexus, this git issue is more interesting than I originally thought it would be! I am thinking ANSI RGB colors might not be a great idea for one solid reason and one subjective one. solid reason: circleci does not seem render them subjective reason: 16-color ANSI option is themable I think this also puts configuration of color to address any accessibility issues with vision in the right place. options
All I really need to address my issue is to have an option to invert colors for differences. Circleci does seem to render background colors just fine: |
I'll just add a little point here: Allowing configurability to this, will let color blind people (red/green for me) to use colors that are more noticably different for them. |
Thanks @magnars, your input is much appreciated. I have been focusing on the terminal and its typical configurability with regards to color, (or lack thereof when presented by circleci), but there is also REPL output when used from an editor and maybe other scenarios I have not thought of. |
I would still be a fan of 2., making it configurable. I also prefer rbg colors over the 16 terminal colors because they are absolute. We can set a foreground and background and be sure it renders the same everywhere. There is such a wide range of color schemes out there that whatever we do will be unreadable for some. If it's configurable at the deep-diff level then kaocha can always detect that @magnars that is a really great point. It's very unfortunate that the two colors that are so commonly used culturally to denote some kind of contrast (red/green) are also the most common colors that colorblind people have trouble with. what other colors would you use to convey added/deleted that aren't so problematic? |
Maybe green additions, and dark gray retractions?
ons. 11. sep. 2019 kl. 10:08 skrev Arne Brasseur <notifications@github.com>:
… I would still be a fan of 2., making it configurable. I also prefer rbg
colors over the 16 terminal colors because they are absolute. We can set a
foreground and background and be sure it renders the same everywhere. There
is such a wide range of color schemes out there that whatever we do will be
unreadable for some.
If it's configurable at the deep-diff level then kaocha can always detect
that CI=true and switch to something more basic.
@magnars <https://github.com/magnars> that is a really great point. It's
very unfortunate that the two colors that are so commonly used culturally
to denote some kind of contrast (red/green) are also the most common colors
that colorblind people have trouble with. what other colors would you use
to convey added/deleted that aren't so problematic?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACA4OJ7HVP4DX3TIA6C5JTQJCROLANCNFSM4ISXS6NQ>
.
|
Thanks for the reply @plexus! I still think there is strong merit to a 16 color palette being themeable. That said, option 2 does not prohibit using the 16 color palette for those that see the benefit. I’ll proceed with testing out support for RGB colors with puget. |
I was poking around a bit with puget. I confirm that it does support 8-bit and 24-bit ANSI schemes via 8-bit scheme is expressed via 24-bit scheme is expressed via These all show nicely in iTerm2 on macOS. They did not, however, show properly in a cider repl session in spacemacs. Caveats on 8-bit and 24-bit scheme support would be included kaocha docs. |
Thanks so much for the kaocha, I am really enjoying using it!
Some of my integration tests include the comparison of largish data structures. It can take my eyeballs a while to find the diff between expected and actual in these data structures.
I do sometimes use the search feature in my terminal to search for + and - and that can help and I was thinking focusing only on the differences, as #13 suggests, would help.
But I am also thinking perhaps a different choice of colors might help. I like the choice of colors chosen for differences, but I find that the red can take a while to spot because it is already used in non-diff syntax highlighting.
My initial thoughts are:
I am happy to give some color schemes a whirl for review, then a PR with changes, if there is interest in this idea.
The text was updated successfully, but these errors were encountered: