makew0rld / amfora

A fancy terminal browser for the Gemini protocol.
GNU General Public License v3.0
1.17k stars 67 forks source link

Support color blind users better by default #189

Open makew0rld opened 3 years ago

makew0rld commented 3 years ago

In this YouTube comment someone said they couldn't tell the difference between a foreign link (#8700d7) and a gemini link (#0087ff). And indeed, it fails WCAG 2.0. I'm not sure if that's the best test since it's more about the background and foreground of text, but it means something.

Other important colors should be checked as well, and compared against other colors in use.

Keep in mind I'm sticking to the 256 xterm colors for the default Amfora colors. A list of those colors is here: https://jonasjacek.github.io/colors/

ghost commented 3 years ago

What about a simple note next to the link? On my own capsule, whenever I remember it, I tend to use something like

=> http://example.org Ejemplo ejemplar de Gemini (web) or (email) or whatever

and this could be displayed as a link pre-prended with some textual symbol or word

like

(w) Example.org (e) dontmailmeitwontwork@example.org

for web and email...
This kind of display could be left to the user preference

Setting colors can also be left to the user, I think, for there are many different kinds of color-blindness and even preferences

Amfora could do something like that by default. Even with its limitations (languages) plain text is pretty accessible. At the very least it would alert the user there's something unusual in that link and you could explain the matter in the help files.

makew0rld commented 3 years ago

Amfora already has a config option to display the link URL, and that can be done also by using Tab to browse links. I'll think about your suggestion, but for this issue I'm mostly just interested in seeing if there are better color options.

jedahan commented 3 years ago

or maybe using dotted underline / solid underline to indicate visited status

makew0rld commented 2 years ago

@jedahan this isn't about visited status, but about gemini links vs non-gemini links.

I haven't been able to find a good colour option that has enough contrast against both the blue (#0087ff) and the black of the default terminal background though, so underlining might be a good option.

makew0rld commented 2 years ago

The default theme colors should be pretty good now, assuming a black terminal background is used. It's not perfect for a white background, but hopefully #181 can help with that.

makew0rld commented 2 years ago

Was this change necessary, now that #181 is implemented? It would be necessary if the colorblind user had two similar colors in the terminal color scheme. I'm not sure how often that happens, but it feels overreaching for Amfora to underline things by default just because the user's colors might be close together.

Reopening and adding to the v1.10.0 milestone to think about this more.