"System" color for warnings (red)
Someone asked on Stack Overflow:
I want to use system colors when it’s possible. How to choose colors which aren’t included in system colors?
Both
SystemColorsclass of WPF,SystemColorsclass of WinForms andCOLOR_*constants forGetSysColorAPI function contain no colors which can be used for warnings. Warnings are usually red, but there’s no guarantee it won’t be close to the system colors the user uses.I want to display items in a ListBox using standard system colors (usually black text on white background for unselected items, white on navy for selected, white on light gray for selected unfocused). When an item is problematic (for example, operation it relates to has failed), I want to make its text red to draw attention. Using single color for all three cases (selected, selected unfocused, unselected) is already problematic, because I find it hard to read red text on light gray background.
Using only custom colors and thus avoiding the problem is unacceptable behavior. Users expect programs to respect their settings.
How to choose correct color for warnings?
I posted the following answer, which was chosen as the accepted answer and received 3 upvotes:
Possibly a new approach is worth consideration. Using colored icons such as the windows event log. Keep all text consistent and use colored icons to visually distinguish different types of data.
Originally posted on Stack Overflow — 3 upvotes (accepted answer). Licensed under CC BY-SA.