Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Where to use which color system(Custom colors,Web colors, System colors).
What i know about it is(custom colors have some exact value, that will be same for every system and System color will vary from system to system if we will use it in our application, i don't know about web colors.)(Is it totally correct.)

Where should we use which color system( i use C# ) .
Posted
Updated 28-Sep-12 7:27am
v2
Comments
Sergey Alexandrovich Kryukov 28-Sep-12 13:22pm    
What do you mean by "difference"? they are just different colors, for different purposes. The question is incorrect, that's the problem (in this part).
--SA

Actually, there is no such thing as 'web colors': they're all just plain RGBA. 'Transparent' and 'Magenta' are names that can be used to improve readability. You should use CSS to format Web sites anyway.
'System colors' like 'button text' or 'Active Window Caption' help you give your application a standard look, when you prefer to do so.
'Custom colors' are something in the line of const Color MyWonderfulAppBackground(220, 220, 220) // light gray; you define a named constant in one place, and you can change it globally for your whole application in one place.

Just my 2 bits,

Pablo.
 
Share this answer
 
Custom and Web colors just translate to numeric values in RGB space, the Web colors are named for convenience by MicroSoft: they should look the same everywhere: but, they may not: my monitor may make your purple look rosy :)

System Colors means that color used will be based on the user's selected Themes and color settings for typical items like TitleBars, and ScrollBar color, etc. So they will vary from machine to machine.

Use System.Colors when you want something (usually a UI element) to look consistent with other applications' UI's appear on the user's machine.

Highly recommend you read this Wiki page [^] for more understanding of what Color names mean in the browser, and in CSS3's X11 specification.

Microsoft is using the CSS Level 3 specification for its named colors.

For information on MS named colors:[^].

And a good overview of MS' evolving its use of color specifications here:[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900