IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
487 stars 73 forks source link

Not accessible font color for menu in root window #32

Open jpfleury opened 12 years ago

jpfleury commented 12 years ago

Note: this is a copy of the ticket 88004 on the SourceForge tracker.

When we go to File > Root Window, the SpaceFM root window has a main menu with a black font and a red background (#750003). This is not an accessible combination because it doesn't have a sufficient contrast. Test it here for example:

http://www.joedolson.com/color-contrast-compare.php?color=%23000000&color2=%23750003

You can also test it here:

http://juicystudio.com/services/luminositycontrastratio.php

The luminosity contrast ratio is only 1.76:1, but it should be at least 4.5:1 for compliance with level AA (WCAG 2).

A suggestion is to set the font color as white for the root window menu:

http://www.joedolson.com/color-contrast-compare.php?color=%23ffffff&color2=%23750003

Also, see the following text:

Why Red/Black Can Be Bad

Some color blind users are lacking the capability to detect the lower color wave frequencies associated with red. For these users, red color waves read as "no signal", or "black". These users confuse red and black, so this contrast should be avoided whenever possible. Red and white is legible, but indistinguisable from black and white.

Sample Warning Signs

The black text on red sign becomes black on black for some color blind users.

http://accessibility.psu.edu/colorblindnessdetails#RK

jpfleury commented 12 years ago

Note: this is a copy of a comment from jpfleury.

Screenshot of the current root window menu.

spacefm-issue-32

jpfleury commented 12 years ago

Note: this is a copy of a comment from IgnorantGuru.

Thus far I have been unable to change the text color of the menu bar (a known difficulty in gtk). So spacefm changes the background color only and uses your normal theme color for the text. This is why I chose a color which was neither bright nor dark - so it would work with both light and dark themes.

You can also disable the colored indicator by unchecking option View|Preferences|Show root indicator.

Another option is to start spacefm with a custom theme when you're running it as root. For example: GTK2_RC_FILES=~/.gtkrc-2.0-root spacefm

(You will need to create the .gtkrc-2.0-root file)

jpfleury commented 12 years ago

Note: this is a copy of a comment from jpfleury.

Thanks for the trick View|Preferences|Show root indicator. Even if this indicator is disabled, we still can see that we're on a root window by the red window icon. It's enough for me.