Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 Color system Web
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
Edited 28-Sep-12 7:27am
v2
Comments
Sergey Alexandrovich Kryukov at 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
Rate this: bad
good
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,
 
Pablo.
  Permalink  
Rate this: bad
good
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 Smile | :)
 
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:[^]
  Permalink  

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

  Print Answers RSS
0 CPallini 405
1 Sergey Alexandrovich Kryukov 272
2 OriginalGriff 165
3 George Jonsson 159
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,860
2 CPallini 5,135
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2014
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