This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204301 - foreg./backg. colors of RUN FAILED text don't meet luminosity contrast ratio reguirements
Summary: foreg./backg. colors of RUN FAILED text don't meet luminosity contrast ratio ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2011-10-27 08:06 UTC by Maria Tishkova
Modified: 2011-10-27 19:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
change Color.red to darker color (1.23 KB, patch)
2011-10-27 08:10 UTC, Maria Tishkova
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maria Tishkova 2011-10-27 08:06:35 UTC
The text RUN FAILED .... is red on white background with a contrast ration of 3.4:1. It needs to be at least 4.5:1. Using a darker red would solve the problem.


You can use this tool to calculate the ratio:
http://www.paciellogroup.com/resources/contrast-analyser.html

Text and images of text have a luminosity contrast ratio of at least 4.5:1. Large scale text has a minimum ratio of at least 3:1. Inactive user interface components, and decorative text, have no minimum ratio. This may be accomplished as the default color scheme of the product, or by providing the capability for a user to select colors that meet these requirements either in the product itself, the browser, and/or the operating system.


Need to change Color.red to new Color(235, 0, 0) to fix it in 
class TerminalInputOutput.TermErrWriter
Comment 1 Maria Tishkova 2011-10-27 08:10:30 UTC
Created attachment 112484 [details]
change Color.red to darker color
Comment 2 Vladimir Voskresensky 2011-10-27 09:32:05 UTC
http://hg.netbeans.org/cnd-main/rev/6738df83c772
Comment 3 Thomas Preisler 2011-10-27 19:56:38 UTC
Improved fix: let the user be able to override/choose the color of the error text in Options/Misc/Term. He can change foreground, background and selection colors but not error color. Why not also error text color?