Click here to Skip to main content
13,505,855 members
Rate this:
Please Sign up or sign in to 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 28-Sep-12 7:01am
Updated 28-Sep-12 7:27am
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).
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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,

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180417.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100