Skip to content
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

Not accessible font color for menu in root window #32

Open
jpfleury opened this issue Apr 6, 2012 · 3 comments
Open

Not accessible font color for menu in root window #32

jpfleury opened this issue Apr 6, 2012 · 3 comments
Milestone

Comments

@jpfleury
Copy link
Contributor

jpfleury commented Apr 6, 2012

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
Copy link
Contributor Author

jpfleury commented Apr 6, 2012

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

Screenshot of the current root window menu.

spacefm-issue-32

@jpfleury
Copy link
Contributor Author

jpfleury commented Apr 6, 2012

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
Copy link
Contributor Author

jpfleury commented Apr 6, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant