2 // System.Drawing.SystemColors.cs
5 // Andrew Skiba (andrews@mainsoft.com)
6 // Konstantin Triger (kostat@mainsoft.com)
8 // Copyright (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 namespace System.Drawing {
34 public sealed class SystemColors
36 private SystemColors (){}
\r
38 static Color [] SystemColorsCache {
\r
40 return KnownColors.Values;
\r
44 static public Color ActiveBorder
47 return SystemColorsCache[(int)KnownColor.ActiveBorder];
51 static public Color ActiveCaption
54 return SystemColorsCache[(int)KnownColor.ActiveCaption];
58 static public Color ActiveCaptionText
61 return SystemColorsCache[(int)KnownColor.ActiveCaptionText];
65 static public Color AppWorkspace
68 return SystemColorsCache[(int)KnownColor.AppWorkspace];
72 static public Color Control
75 return SystemColorsCache[(int)KnownColor.Control];
79 static public Color ControlDark
82 return SystemColorsCache[(int)KnownColor.ControlDark];
86 static public Color ControlDarkDark
89 return SystemColorsCache[(int)KnownColor.ControlDarkDark];
93 static public Color ControlLight
96 return SystemColorsCache[(int)KnownColor.ControlLight];
100 static public Color ControlLightLight
103 return SystemColorsCache[(int)KnownColor.ControlLightLight];
107 static public Color ControlText
110 return SystemColorsCache[(int)KnownColor.ControlText];
114 static public Color Desktop
117 return SystemColorsCache[(int)KnownColor.Desktop];
121 static public Color GrayText
124 return SystemColorsCache[(int)KnownColor.GrayText];
128 static public Color Highlight
131 return SystemColorsCache[(int)KnownColor.Highlight];
135 static public Color HighlightText
138 return SystemColorsCache[(int)KnownColor.HighlightText];
142 static public Color HotTrack
145 return SystemColorsCache[(int)KnownColor.HotTrack];
149 static public Color InactiveBorder
152 return SystemColorsCache[(int)KnownColor.InactiveBorder];
156 static public Color InactiveCaption
159 return SystemColorsCache[(int)KnownColor.InactiveCaption];
163 static public Color InactiveCaptionText
166 return SystemColorsCache[(int)KnownColor.InactiveCaptionText];
170 static public Color Info
173 return SystemColorsCache[(int)KnownColor.Info];
177 static public Color InfoText
180 return SystemColorsCache[(int)KnownColor.InfoText];
184 static public Color Menu
187 return SystemColorsCache[(int)KnownColor.Menu];
191 static public Color MenuText
194 return SystemColorsCache[(int)KnownColor.MenuText];
198 static public Color ScrollBar
201 return SystemColorsCache[(int)KnownColor.ScrollBar];
205 static public Color Window
208 return SystemColorsCache[(int)KnownColor.Window];
212 static public Color WindowFrame
215 return SystemColorsCache[(int)KnownColor.WindowFrame];
219 static public Color WindowText
222 return SystemColorsCache[(int)KnownColor.WindowText];
228 static public Color ButtonFace
231 return SystemColorsCache [(int) KnownColor.ButtonFace];
235 static public Color ButtonHighlight
238 return SystemColorsCache [(int) KnownColor.ButtonHighlight];
242 static public Color ButtonShadow
245 return SystemColorsCache [(int) KnownColor.ButtonShadow];
249 static public Color GradientActiveCaption
252 return SystemColorsCache [(int) KnownColor.GradientActiveCaption];
256 static public Color GradientInactiveCaption
259 return SystemColorsCache [(int) KnownColor.GradientInactiveCaption];
263 static public Color MenuBar
266 return SystemColorsCache [(int) KnownColor.MenuBar];
270 static public Color MenuHighlight
273 return SystemColorsCache [(int) KnownColor.MenuHighlight];