2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.Drawing / System.Drawing / SystemColors.jvm.cs
blob24845cb42bff7c0d72f94027ca17c70abfcd5609
1 //
2 // System.Drawing.SystemColors.cs
3 //
4 // Authors:
5 // Andrew Skiba (andrews@mainsoft.com)
6 // Konstantin Triger (kostat@mainsoft.com)
7 //
8 // Copyright (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
9 //
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:
19 //
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 //
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 (){}
38 static Color [] SystemColorsCache {
39 get {
40 return KnownColors.Values;
44 static public Color ActiveBorder
46 get {
47 return SystemColorsCache[(int)KnownColor.ActiveBorder];
51 static public Color ActiveCaption
53 get {
54 return SystemColorsCache[(int)KnownColor.ActiveCaption];
58 static public Color ActiveCaptionText
60 get {
61 return SystemColorsCache[(int)KnownColor.ActiveCaptionText];
65 static public Color AppWorkspace
67 get {
68 return SystemColorsCache[(int)KnownColor.AppWorkspace];
72 static public Color Control
74 get {
75 return SystemColorsCache[(int)KnownColor.Control];
79 static public Color ControlDark
81 get {
82 return SystemColorsCache[(int)KnownColor.ControlDark];
86 static public Color ControlDarkDark
88 get {
89 return SystemColorsCache[(int)KnownColor.ControlDarkDark];
93 static public Color ControlLight
95 get {
96 return SystemColorsCache[(int)KnownColor.ControlLight];
100 static public Color ControlLightLight
102 get {
103 return SystemColorsCache[(int)KnownColor.ControlLightLight];
107 static public Color ControlText
109 get {
110 return SystemColorsCache[(int)KnownColor.ControlText];
114 static public Color Desktop
116 get {
117 return SystemColorsCache[(int)KnownColor.Desktop];
121 static public Color GrayText
123 get {
124 return SystemColorsCache[(int)KnownColor.GrayText];
128 static public Color Highlight
130 get {
131 return SystemColorsCache[(int)KnownColor.Highlight];
135 static public Color HighlightText
137 get {
138 return SystemColorsCache[(int)KnownColor.HighlightText];
142 static public Color HotTrack
144 get {
145 return SystemColorsCache[(int)KnownColor.HotTrack];
149 static public Color InactiveBorder
151 get {
152 return SystemColorsCache[(int)KnownColor.InactiveBorder];
156 static public Color InactiveCaption
158 get {
159 return SystemColorsCache[(int)KnownColor.InactiveCaption];
163 static public Color InactiveCaptionText
165 get {
166 return SystemColorsCache[(int)KnownColor.InactiveCaptionText];
170 static public Color Info
172 get {
173 return SystemColorsCache[(int)KnownColor.Info];
177 static public Color InfoText
179 get {
180 return SystemColorsCache[(int)KnownColor.InfoText];
184 static public Color Menu
186 get {
187 return SystemColorsCache[(int)KnownColor.Menu];
191 static public Color MenuText
193 get {
194 return SystemColorsCache[(int)KnownColor.MenuText];
198 static public Color ScrollBar
200 get {
201 return SystemColorsCache[(int)KnownColor.ScrollBar];
205 static public Color Window
207 get {
208 return SystemColorsCache[(int)KnownColor.Window];
212 static public Color WindowFrame
214 get {
215 return SystemColorsCache[(int)KnownColor.WindowFrame];
219 static public Color WindowText
221 get {
222 return SystemColorsCache[(int)KnownColor.WindowText];
226 #if NET_2_0
228 static public Color ButtonFace
230 get {
231 return SystemColorsCache [(int) KnownColor.ButtonFace];
235 static public Color ButtonHighlight
237 get {
238 return SystemColorsCache [(int) KnownColor.ButtonHighlight];
242 static public Color ButtonShadow
244 get {
245 return SystemColorsCache [(int) KnownColor.ButtonShadow];
249 static public Color GradientActiveCaption
251 get {
252 return SystemColorsCache [(int) KnownColor.GradientActiveCaption];
256 static public Color GradientInactiveCaption
258 get {
259 return SystemColorsCache [(int) KnownColor.GradientInactiveCaption];
263 static public Color MenuBar
265 get {
266 return SystemColorsCache [(int) KnownColor.MenuBar];
270 static public Color MenuHighlight
272 get {
273 return SystemColorsCache [(int) KnownColor.MenuHighlight];
276 #endif