-
Notifications
You must be signed in to change notification settings - Fork 41
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
A more colourful menu #236
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I do like the new look! One concern is red/green colorblind users; it's the most common form, apparently about 1/12 of all men suffer from colorblindness https://aapos.org/glossary/color-blindness. Any chance we can choose a more colorblind-friendly set of colors?
2250f48
to
6471471
Compare
I went with the red-green combo because it felt intuitive - green means yes and red means no; but I didn't take color blindness into account!
Absolutely! Do you have any in mind or a personal preference from these (or any other) palettes? |
Codecov Report
@@ Coverage Diff @@
## master #236 +/- ##
==========================================
+ Coverage 82.85% 82.89% +0.03%
==========================================
Files 7 7
Lines 1021 1023 +2
==========================================
+ Hits 846 848 +2
Misses 175 175
Continue to review full report at Codecov.
|
I agree completely that for the non-colorblind red/green is indeed very intuitive, and that no other color combo quite matches it. But so many people are affected by some form of colorblindness that to me I think we have to account for their needs. I am definitely not an expert and would defer to your or others' choices, but to me both the green/purple (lower left in "accessible palettes) or the blue/magenta (lower right) seem reasonably intuitive. |
Since red-green color blindness is common, use a blue-magenta combo instead. Also, make the toggled option bold and change the color of first line of the menu to green to reduce the amount of blue in the menu.
I don't think that would be a good idea as there's a good chance that any colour combination we pick might appear faded in a similar manner, depending upon users' terminal settings. I don't think there's one size that fits all for this, so we should probably just pick one colour palette and stick with it. On a related note, I also think brighter colours might make the content more easily discernible (the yellow-pink palette here seems to be one of the brighter pairs, but I'm not sure they're the most intuitive 😅 ). |
What about making it configurable? E.g.,
const CTHULHU_ON = :green
const CTHULHU_OFF = :red for those of us who can see those colors (and default to the ones you've chosen). Internally you can use |
I like this idea. But what do you think about making it configurable through |
i'd love this feature! to be friendly to colorblind, maybe we could default the coloring to be as-is (off) and leave the config to another PR? @thazhemadam thanks for doing this |
ef2c459
to
ee4e0c1
Compare
It's a pity this went stale :-(. I agree we should take the needs of colorblind users in mind, but: my understanding is that someone who is e.g. red/green blind may not be able to differentiate between certain red and green colors (if they have the same brightness etc.), but they can still see them. So wouldn't that mean for such a user, the effect would be that they don't see different colors -- so in effect exactly what we have no. I.e there would be no regression for them, just no improvement. So while of course we should ultimately allow them to benefit, too (e.g. by making the colors configurable -- perhaps via Preferences.jl), wouldn't it still make sense to merge this improvement now, and add the color preferences later? |
This PR adds colours to the menu options and also makes the colours for options that can be toggled (except for
debuginfo
) more expressive.Before:
After: