SystemColors.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. //
  2. // System.Drawing.SystemColors.cs
  3. //
  4. // Copyright (C) 2002 Ximian, Inc (http://www.ximian.com)
  5. // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining
  8. // a copy of this software and associated documentation files (the
  9. // "Software"), to deal in the Software without restriction, including
  10. // without limitation the rights to use, copy, modify, merge, publish,
  11. // distribute, sublicense, and/or sell copies of the Software, and to
  12. // permit persons to whom the Software is furnished to do so, subject to
  13. // the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be
  16. // included in all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. //
  26. // Authors:
  27. // Gonzalo Paniagua Javier ([email protected])
  28. // Peter Dennis Bartok ([email protected])
  29. //
  30. // The following method can be (and was) used to generate the defaults for the properties
  31. //private static void GenerateColorTable (Type type) {
  32. // PropertyInfo [] props = type.GetProperties ();
  33. // foreach (PropertyInfo prop in props){
  34. // if (prop.PropertyType != typeof (Color))
  35. // continue;
  36. //
  37. // MethodInfo getget = prop.GetGetMethod ();
  38. // if (getget == null || getget.IsStatic == false)
  39. // continue;
  40. //
  41. // object o = prop.GetValue (null, null);
  42. //
  43. // Color c = (Color) o;
  44. //
  45. // StringBuilder name = new StringBuilder(prop.Name);
  46. // name[0] = Char.ToLower(name[0]);
  47. // for (int i = 1; i < name.Length; i++) {
  48. // if (Char.IsUpper(name[i])) {
  49. // name[i] = Char.ToLower(name[i]);
  50. // name.Insert(i, '_');
  51. // }
  52. // }
  53. //
  54. // Console.WriteLine("static private Color " + name.ToString() + " = Color.FromArgbSystem (" +
  55. // c.A.ToString() + ", " +
  56. // c.R.ToString() + ", " +
  57. // c.G.ToString() + ", " +
  58. // c.B.ToString() + ", " +
  59. // "\"" + prop.Name + "\", " +
  60. // "KnownColor." + prop.Name + ");");
  61. // }
  62. //}
  63. using System;
  64. using System.Reflection;
  65. using System.Runtime.InteropServices;
  66. namespace System.Drawing {
  67. public sealed class SystemColors
  68. {
  69. // Default Windows XP color table
  70. static private Color active_border = Color.FromArgbSystem (255, 212, 208, 200, "ActiveBorder", KnownColor.ActiveBorder);
  71. static private Color active_caption = Color.FromArgbSystem (255, 0, 164, 164, "ActiveCaption", KnownColor.ActiveCaption);
  72. static private Color active_caption_text = Color.FromArgbSystem (255, 255, 255, 255, "ActiveCaptionText", KnownColor.ActiveCaptionText);
  73. static private Color app_workspace = Color.FromArgbSystem (255, 128, 128, 128, "AppWorkspace", KnownColor.AppWorkspace);
  74. static private Color control = Color.FromArgbSystem (255, 212, 208, 200, "Control", KnownColor.Control);
  75. static private Color control_dark = Color.FromArgbSystem (255, 128, 128, 128, "ControlDark", KnownColor.ControlDark);
  76. static private Color control_dark_dark = Color.FromArgbSystem (255, 64, 64, 64, "ControlDarkDark", KnownColor.ControlDarkDark);
  77. static private Color control_light = Color.FromArgbSystem (255, 212, 208, 200, "ControlLight", KnownColor.ControlLight);
  78. static private Color control_light_light = Color.FromArgbSystem (255, 255, 255, 255, "ControlLightLight", KnownColor.ControlLightLight);
  79. static private Color control_text = Color.FromArgbSystem (255, 0, 0, 0, "ControlText", KnownColor.ControlText);
  80. static private Color desktop = Color.FromArgbSystem (255, 0, 0, 0, "Desktop", KnownColor.Desktop);
  81. static private Color gray_text = Color.FromArgbSystem (255, 128, 128, 128, "GrayText", KnownColor.GrayText);
  82. static private Color highlight = Color.FromArgbSystem (255, 10, 36, 106, "Highlight", KnownColor.Highlight);
  83. static private Color highlight_text = Color.FromArgbSystem (255, 255, 255, 255, "HighlightText", KnownColor.HighlightText);
  84. static private Color hot_track = Color.FromArgbSystem (255, 0, 0, 128, "HotTrack", KnownColor.HotTrack);
  85. static private Color inactive_border = Color.FromArgbSystem (255, 212, 208, 200, "InactiveBorder", KnownColor.InactiveBorder);
  86. static private Color inactive_caption = Color.FromArgbSystem (255, 128, 128, 128, "InactiveCaption", KnownColor.InactiveCaption);
  87. static private Color inactive_caption_text = Color.FromArgbSystem (255, 212, 208, 200, "InactiveCaptionText", KnownColor.InactiveCaptionText);
  88. static private Color info = Color.FromArgbSystem (255, 255, 255, 225, "Info", KnownColor.Info);
  89. static private Color info_text = Color.FromArgbSystem (255, 0, 0, 0, "InfoText", KnownColor.InfoText);
  90. static private Color menu = Color.FromArgbSystem (255, 212, 208, 200, "Menu", KnownColor.Menu);
  91. static private Color menu_text = Color.FromArgbSystem (255, 0, 0, 0, "MenuText", KnownColor.MenuText);
  92. static private Color scroll_bar = Color.FromArgbSystem (255, 212, 208, 200, "ScrollBar", KnownColor.ScrollBar);
  93. // This would give a better looking gray background instead of the high-contrast white background
  94. //static private Color window = Color.FromArgbSystem (255, 212, 208, 200, "Window", KnownColor.Window);
  95. static private Color window = Color.FromArgbSystem (255, 255, 255, 255, "Window", KnownColor.Window);
  96. static private Color window_frame = Color.FromArgbSystem (255, 0, 0, 0, "WindowFrame", KnownColor.WindowFrame);
  97. static private Color window_text = Color.FromArgbSystem (255, 0, 0, 0, "WindowText", KnownColor.WindowText);
  98. #if NET_2_0
  99. static private Color button_face = Color.FromArgbSystem (255, 192, 192, 192, "ButtonFace", KnownColor.ButtonFace);
  100. static private Color button_highlight = Color.FromArgbSystem (255, 255, 255, 255, "ButtonHighlight", KnownColor.ButtonHighlight);
  101. static private Color button_shadow = Color.FromArgbSystem (255, 128, 128, 128, "ButtonShadow", KnownColor.ButtonShadow);
  102. static private Color gradient_activecaption = Color.FromArgbSystem (255, 16, 132, 208, "GradientActiveCaption", KnownColor.GradientActiveCaption);
  103. static private Color gradient_inactivecaption = Color.FromArgbSystem (255, 181, 181, 181, "GradientInactiveCaption", KnownColor.GradientInactiveCaption);
  104. static private Color menubar = Color.FromArgbSystem (255, 192, 192, 192, "MenuBar", KnownColor.MenuBar);
  105. static private Color menu_highlight = Color.FromArgbSystem (255, 0, 0, 0, "MenuHighlight", KnownColor.MenuHighlight);
  106. #endif
  107. #if old
  108. static private Color active_border = Color.FromArgbSystem (255, 131, 153, 177, "ActiveBorder", KnownColor.ActiveBorder);
  109. static private Color active_caption = Color.FromArgbSystem (255, 79, 101, 125, "ActiveCaption", KnownColor.ActiveCaption);
  110. static private Color active_caption_text = Color.FromArgbSystem (255, 255, 255, 255, "ActiveCaptionText", KnownColor.ActiveCaptionText);
  111. static private Color app_workspace = Color.FromArgbSystem (255, 128, 128, 128, "AppWorkspace", KnownColor.AppWorkspace);
  112. static private Color control = Color.FromArgbSystem (255, 192, 192, 192, "Control", KnownColor.Control);
  113. static private Color control_dark = Color.FromArgbSystem (255, 79, 101, 125, "ControlDark", KnownColor.ControlDark);
  114. static private Color control_dark_dark = Color.FromArgbSystem (255, 0, 0, 0, "ControlDarkDark", KnownColor.ControlDarkDark);
  115. static private Color control_light = Color.FromArgbSystem (255, 131, 153, 177, "ControlLight", KnownColor.ControlLight);
  116. static private Color control_light_light = Color.FromArgbSystem (255, 193, 204, 217, "ControlLightLight", KnownColor.ControlLightLight);
  117. static private Color control_text = Color.FromArgbSystem (255, 0, 0, 0, "ControlText", KnownColor.ControlText);
  118. static private Color desktop = Color.FromArgbSystem (255, 0, 0, 0, "Desktop", KnownColor.Desktop);
  119. static private Color gray_text = Color.FromArgbSystem (255, 79, 101, 125, "GrayText", KnownColor.GrayText);
  120. static private Color highlight = Color.FromArgbSystem (255, 0, 0, 128, "Highlight", KnownColor.Highlight);
  121. static private Color highlight_text = Color.FromArgbSystem (255, 255, 255, 255, "HighlightText", KnownColor.HighlightText);
  122. static private Color hot_track = Color.FromArgbSystem (255, 0, 0, 255, "HotTrack", KnownColor.HotTrack);
  123. static private Color inactive_border = Color.FromArgbSystem (255, 131, 153, 177, "InactiveBorder", KnownColor.InactiveBorder);
  124. static private Color inactive_caption = Color.FromArgbSystem (255, 128, 128, 128, "InactiveCaption", KnownColor.InactiveCaption);
  125. static private Color inactive_caption_text = Color.FromArgbSystem (255, 193, 204, 217, "InactiveCaptionText", KnownColor.InactiveCaptionText);
  126. static private Color info = Color.FromArgbSystem (255, 255, 255, 255, "Info", KnownColor.Info);
  127. static private Color info_text = Color.FromArgbSystem (255, 0, 0, 0, "InfoText", KnownColor.InfoText);
  128. static private Color menu = Color.FromArgbSystem (255, 131, 153, 177, "Menu", KnownColor.Menu);
  129. static private Color menu_text = Color.FromArgbSystem (255, 0, 0, 0, "MenuText", KnownColor.MenuText);
  130. static private Color scroll_bar = Color.FromArgbSystem (255, 193, 204, 217, "ScrollBar", KnownColor.ScrollBar);
  131. static private Color window = Color.FromArgbSystem (255, 255, 255, 255, "Window", KnownColor.Window);
  132. static private Color window_frame = Color.FromArgbSystem (255, 0, 0, 0, "WindowFrame", KnownColor.WindowFrame);
  133. static private Color window_text = Color.FromArgbSystem (255, 0, 0, 0, "WindowText", KnownColor.WindowText);
  134. #endif
  135. private enum GetSysColorIndex {
  136. COLOR_SCROLLBAR = 0,
  137. COLOR_BACKGROUND = 1,
  138. COLOR_ACTIVECAPTION = 2,
  139. COLOR_INACTIVECAPTION = 3,
  140. COLOR_MENU = 4,
  141. COLOR_WINDOW = 5,
  142. COLOR_WINDOWFRAME = 6,
  143. COLOR_MENUTEXT = 7,
  144. COLOR_WINDOWTEXT = 8,
  145. COLOR_CAPTIONTEXT = 9,
  146. COLOR_ACTIVEBORDER = 10,
  147. COLOR_INACTIVEBORDER = 11,
  148. COLOR_APPWORKSPACE = 12,
  149. COLOR_HIGHLIGHT = 13,
  150. COLOR_HIGHLIGHTTEXT = 14,
  151. COLOR_BTNFACE = 15,
  152. COLOR_BTNSHADOW = 16,
  153. COLOR_GRAYTEXT = 17,
  154. COLOR_BTNTEXT = 18,
  155. COLOR_INACTIVECAPTIONTEXT = 19,
  156. COLOR_BTNHIGHLIGHT = 20,
  157. COLOR_3DDKSHADOW = 21,
  158. COLOR_3DLIGHT = 22,
  159. COLOR_INFOTEXT = 23,
  160. COLOR_INFOBK = 24,
  161. COLOR_HOTLIGHT = 26,
  162. COLOR_GRADIENTACTIVECAPTION = 27,
  163. COLOR_GRADIENTINACTIVECAPTION = 28,
  164. COLOR_MENUHIGHLIGHT = 29,
  165. COLOR_MENUBAR = 30,
  166. COLOR_DESKTOP = 1,
  167. COLOR_3DFACE = 16,
  168. COLOR_3DSHADOW = 16,
  169. COLOR_3DHIGHLIGHT = 20,
  170. COLOR_3DHILIGHT = 20,
  171. COLOR_BTNHILIGHT = 20,
  172. COLOR_MAXVALUE = 30,/* Maximum value */
  173. }
  174. [DllImport ("user32.dll", EntryPoint="GetSysColor", CallingConvention=CallingConvention.StdCall)]
  175. private extern static uint Win32GetSysColor(GetSysColorIndex index);
  176. private static Color GetSysColor(GetSysColorIndex index, string name, KnownColor knownColor) {
  177. uint color;
  178. color = Win32GetSysColor(index);
  179. return Color.FromArgbSystem(255, (byte)(color & 0xff), (byte)((color >> 8) & 0xff), (byte)((color >> 16) & 0xff), name, knownColor);
  180. }
  181. // When this method is called, we teach any new color(s) to the Color class
  182. private static void UpdateColors() {
  183. active_border = Color.UpdateKnownColor (active_border.A, active_border.R, active_border.G, active_border.B, "ActiveBorder", KnownColor.ActiveBorder);
  184. active_caption = Color.UpdateKnownColor (active_caption.A, active_caption.R, active_caption.G, active_caption.B, "ActiveCaption", KnownColor.ActiveCaption);
  185. active_caption_text = Color.UpdateKnownColor (active_caption_text.A, active_caption_text.R, active_caption_text.G, active_caption_text.B, "ActiveCaptionText", KnownColor.ActiveCaptionText);
  186. app_workspace = Color.UpdateKnownColor (app_workspace.A, app_workspace.R, app_workspace.G, app_workspace.B, "AppWorkspace", KnownColor.AppWorkspace);
  187. control = Color.UpdateKnownColor (control.A, control.R, control.G, control.B, "Control", KnownColor.Control);
  188. control_dark = Color.UpdateKnownColor (control_dark.A, control_dark.R, control_dark.G, control_dark.B, "ControlDark", KnownColor.ControlDark);
  189. control_dark_dark = Color.UpdateKnownColor (control_dark_dark.A, control_dark_dark.R, control_dark_dark.G, control_dark_dark.B, "ControlDarkDark", KnownColor.ControlDarkDark);
  190. control_light = Color.UpdateKnownColor (control_light.A, control_light.R, control_light.G, control_light.B, "ControlLight", KnownColor.ControlLight);
  191. control_light_light = Color.UpdateKnownColor (control_light_light.A, control_light_light.R, control_light_light.G, control_light_light.B, "ControlLightLight", KnownColor.ControlLightLight);
  192. control_text = Color.UpdateKnownColor (control_text.A, control_text.R, control_text.G, control_text.B, "ControlText", KnownColor.ControlText);
  193. desktop = Color.UpdateKnownColor (desktop.A, desktop.R, desktop.G, desktop.B, "Desktop", KnownColor.Desktop);
  194. gray_text = Color.UpdateKnownColor (gray_text.A, gray_text.R, gray_text.G, gray_text.B, "GrayText", KnownColor.GrayText);
  195. highlight = Color.UpdateKnownColor (highlight.A, highlight.R, highlight.G, highlight.B, "Highlight", KnownColor.Highlight);
  196. highlight_text = Color.UpdateKnownColor (highlight_text.A, highlight_text.R, highlight_text.G, highlight_text.B, "HighlightText", KnownColor.HighlightText);
  197. hot_track = Color.UpdateKnownColor (hot_track.A, hot_track.R, hot_track.G, hot_track.B, "HotTrack", KnownColor.HotTrack);
  198. inactive_border = Color.UpdateKnownColor (inactive_border.A, inactive_border.R, inactive_border.G, inactive_border.B, "InactiveBorder", KnownColor.InactiveBorder);
  199. inactive_caption = Color.UpdateKnownColor (inactive_caption.A, inactive_caption.R, inactive_caption.G, inactive_caption.B, "InactiveCaption", KnownColor.InactiveCaption);
  200. inactive_caption_text = Color.UpdateKnownColor (inactive_caption_text.A, inactive_caption_text.R, inactive_caption_text.G, inactive_caption_text.B, "InactiveCaptionText", KnownColor.InactiveCaptionText);
  201. info = Color.UpdateKnownColor (info.A, info.R, info.G, info.B, "Info", KnownColor.Info);
  202. info_text = Color.UpdateKnownColor (info_text.A, info_text.R, info_text.G, info_text.B, "InfoText", KnownColor.InfoText);
  203. menu = Color.UpdateKnownColor (menu.A, menu.R, menu.G, menu.B, "Menu", KnownColor.Menu);
  204. menu_text = Color.UpdateKnownColor (menu_text.A, menu_text.R, menu_text.G, menu_text.B, "MenuText", KnownColor.MenuText);
  205. scroll_bar = Color.UpdateKnownColor (scroll_bar.A, scroll_bar.R, scroll_bar.G, scroll_bar.B, "ScrollBar", KnownColor.ScrollBar);
  206. window = Color.UpdateKnownColor (window.A, window.R, window.G, window.B, "Window", KnownColor.Window);
  207. window_frame = Color.UpdateKnownColor (window_frame.A, window_frame.R, window_frame.G, window_frame.B, "WindowFrame", KnownColor.WindowFrame);
  208. window_text = Color.UpdateKnownColor (window_text.A, window_text.R, window_text.G, window_text.B, "WindowText", KnownColor.WindowText);
  209. }
  210. static SystemColors () {
  211. // If we're on a Win32 platform we should behave like MS and pull the colors
  212. if (((int)Environment.OSVersion.Platform != 4) && ((int)Environment.OSVersion.Platform != 128)) {
  213. active_border = GetSysColor(GetSysColorIndex.COLOR_ACTIVEBORDER, "ActiveBorder", KnownColor.ActiveBorder);
  214. active_caption = GetSysColor(GetSysColorIndex.COLOR_ACTIVECAPTION, "ActiveCaption", KnownColor.ActiveCaption);
  215. active_caption_text = GetSysColor(GetSysColorIndex.COLOR_CAPTIONTEXT, "ActiveCaptionText", KnownColor.ActiveCaptionText);
  216. app_workspace = GetSysColor(GetSysColorIndex.COLOR_APPWORKSPACE, "AppWorkspace", KnownColor.AppWorkspace);
  217. control = GetSysColor(GetSysColorIndex.COLOR_BTNFACE, "Control", KnownColor.Control);
  218. control_dark = GetSysColor(GetSysColorIndex.COLOR_BTNSHADOW, "ControlDark", KnownColor.ControlDark);
  219. control_dark_dark = GetSysColor(GetSysColorIndex.COLOR_3DDKSHADOW, "ControlDarkDark", KnownColor.ControlDarkDark);
  220. control_light = GetSysColor(GetSysColorIndex.COLOR_3DLIGHT, "ControlLight", KnownColor.ControlLight);
  221. control_light_light = GetSysColor(GetSysColorIndex.COLOR_BTNHIGHLIGHT, "ControlLightLight", KnownColor.ControlLightLight);
  222. control_text = GetSysColor(GetSysColorIndex.COLOR_BTNTEXT, "ControlText", KnownColor.ControlText);
  223. desktop = GetSysColor(GetSysColorIndex.COLOR_DESKTOP, "Desktop", KnownColor.Desktop);
  224. gray_text = GetSysColor(GetSysColorIndex.COLOR_GRAYTEXT, "GrayText", KnownColor.GrayText);
  225. highlight = GetSysColor(GetSysColorIndex.COLOR_HIGHLIGHT, "Highlight", KnownColor.Highlight);
  226. highlight_text = GetSysColor(GetSysColorIndex.COLOR_HIGHLIGHTTEXT, "HighlightText", KnownColor.HighlightText);
  227. hot_track = GetSysColor(GetSysColorIndex.COLOR_HOTLIGHT, "HotTrack", KnownColor.HotTrack);
  228. inactive_border = GetSysColor(GetSysColorIndex.COLOR_INACTIVEBORDER, "InactiveBorder", KnownColor.InactiveBorder);
  229. inactive_caption = GetSysColor(GetSysColorIndex.COLOR_INACTIVECAPTION, "InactiveCaption", KnownColor.InactiveCaption);
  230. inactive_caption_text = GetSysColor(GetSysColorIndex.COLOR_INACTIVECAPTIONTEXT, "InactiveCaptionText", KnownColor.InactiveCaptionText);
  231. info = GetSysColor(GetSysColorIndex.COLOR_INFOBK, "Info", KnownColor.Info);
  232. info_text = GetSysColor(GetSysColorIndex.COLOR_INFOTEXT, "InfoText", KnownColor.InfoText);
  233. menu = GetSysColor(GetSysColorIndex.COLOR_MENU, "Menu", KnownColor.Menu);
  234. menu_text = GetSysColor(GetSysColorIndex.COLOR_MENUTEXT, "MenuText", KnownColor.MenuText);
  235. scroll_bar = GetSysColor(GetSysColorIndex.COLOR_SCROLLBAR, "ScrollBar", KnownColor.ScrollBar);
  236. window = GetSysColor(GetSysColorIndex.COLOR_WINDOW, "Window", KnownColor.Window);
  237. window_frame = GetSysColor(GetSysColorIndex.COLOR_WINDOWFRAME, "WindowFrame", KnownColor.WindowFrame);
  238. window_text = GetSysColor(GetSysColorIndex.COLOR_WINDOWTEXT, "WindowText", KnownColor.WindowText);
  239. }
  240. }
  241. private SystemColors ()
  242. {
  243. }
  244. static public Color ActiveBorder
  245. {
  246. get {
  247. return active_border;
  248. }
  249. }
  250. static public Color ActiveCaption
  251. {
  252. get {
  253. return active_caption;
  254. }
  255. }
  256. static public Color ActiveCaptionText
  257. {
  258. get {
  259. return active_caption_text;
  260. }
  261. }
  262. static public Color AppWorkspace
  263. {
  264. get {
  265. return app_workspace;
  266. }
  267. }
  268. static public Color Control
  269. {
  270. get {
  271. return control;
  272. }
  273. }
  274. static public Color ControlDark
  275. {
  276. get {
  277. return control_dark;
  278. }
  279. }
  280. static public Color ControlDarkDark
  281. {
  282. get {
  283. return control_dark_dark;
  284. }
  285. }
  286. static public Color ControlLight
  287. {
  288. get {
  289. return control_light;
  290. }
  291. }
  292. static public Color ControlLightLight
  293. {
  294. get {
  295. return control_light_light;
  296. }
  297. }
  298. static public Color ControlText
  299. {
  300. get {
  301. return control_text;
  302. }
  303. }
  304. static public Color Desktop
  305. {
  306. get {
  307. return desktop;
  308. }
  309. }
  310. static public Color GrayText
  311. {
  312. get {
  313. return gray_text;
  314. }
  315. }
  316. static public Color Highlight
  317. {
  318. get {
  319. return highlight;
  320. }
  321. }
  322. static public Color HighlightText
  323. {
  324. get {
  325. return highlight_text;
  326. }
  327. }
  328. static public Color HotTrack
  329. {
  330. get {
  331. return hot_track;
  332. }
  333. }
  334. static public Color InactiveBorder
  335. {
  336. get {
  337. return inactive_border;
  338. }
  339. }
  340. static public Color InactiveCaption
  341. {
  342. get {
  343. return inactive_caption;
  344. }
  345. }
  346. static public Color InactiveCaptionText
  347. {
  348. get {
  349. return inactive_caption_text;
  350. }
  351. }
  352. static public Color Info
  353. {
  354. get {
  355. return info;
  356. }
  357. }
  358. static public Color InfoText
  359. {
  360. get {
  361. return info_text;
  362. }
  363. }
  364. static public Color Menu
  365. {
  366. get {
  367. return menu;
  368. }
  369. }
  370. static public Color MenuText
  371. {
  372. get {
  373. return menu_text;
  374. }
  375. }
  376. static public Color ScrollBar
  377. {
  378. get {
  379. return scroll_bar;
  380. }
  381. }
  382. static public Color Window
  383. {
  384. get {
  385. return window;
  386. }
  387. }
  388. static public Color WindowFrame
  389. {
  390. get {
  391. return window_frame;
  392. }
  393. }
  394. static public Color WindowText
  395. {
  396. get {
  397. return window_text;
  398. }
  399. }
  400. #if NET_2_0
  401. static public Color ButtonFace
  402. {
  403. get {
  404. return button_face;
  405. }
  406. }
  407. static public Color ButtonHighlight
  408. {
  409. get {
  410. return button_highlight;
  411. }
  412. }
  413. static public Color ButtonShadow
  414. {
  415. get {
  416. return button_shadow;
  417. }
  418. }
  419. static public Color GradientActiveCaption
  420. {
  421. get {
  422. return gradient_activecaption;
  423. }
  424. }
  425. static public Color GradientInactiveCaption
  426. {
  427. get {
  428. return gradient_inactivecaption;
  429. }
  430. }
  431. static public Color MenuBar
  432. {
  433. get {
  434. return menubar;
  435. }
  436. }
  437. static public Color MenuHighlight
  438. {
  439. get {
  440. return menu_highlight;
  441. }
  442. }
  443. #endif
  444. }
  445. }