SystemColors.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. //
  2. // System.Drawing.SystemColors.cs
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. // Generated using a slightly modified version of the program listed inside comments
  10. // in Color.cs
  11. //
  12. //
  13. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  14. //
  15. // Permission is hereby granted, free of charge, to any person obtaining
  16. // a copy of this software and associated documentation files (the
  17. // "Software"), to deal in the Software without restriction, including
  18. // without limitation the rights to use, copy, modify, merge, publish,
  19. // distribute, sublicense, and/or sell copies of the Software, and to
  20. // permit persons to whom the Software is furnished to do so, subject to
  21. // the following conditions:
  22. //
  23. // The above copyright notice and this permission notice shall be
  24. // included in all copies or substantial portions of the Software.
  25. //
  26. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  27. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  28. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  29. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  30. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  31. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  32. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  33. //
  34. namespace System.Drawing {
  35. public sealed class SystemColors
  36. {
  37. private SystemColors ()
  38. {
  39. }
  40. static public Color ActiveBorder
  41. {
  42. get {
  43. return Color.FromArgbSystem (255, 131, 153, 177, "ActiveBorder", KnownColor.ActiveBorder);
  44. }
  45. }
  46. static public Color ActiveCaption
  47. {
  48. get {
  49. return Color.FromArgbSystem (255, 79, 101, 125, "ActiveCaption", KnownColor.ActiveCaption);
  50. }
  51. }
  52. static public Color ActiveCaptionText
  53. {
  54. get {
  55. return Color.FromArgbSystem (255, 255, 255, 255, "ActiveCaptionText", KnownColor.ActiveCaptionText);
  56. }
  57. }
  58. static public Color AppWorkspace
  59. {
  60. get {
  61. return Color.FromArgbSystem (255, 128, 128, 128, "AppWorkspace", KnownColor.AppWorkspace);
  62. }
  63. }
  64. static public Color Control
  65. {
  66. get {
  67. return Color.FromArgbSystem (255, 192, 192, 192, "Control", KnownColor.Control);
  68. }
  69. }
  70. static public Color ControlDark
  71. {
  72. get {
  73. return Color.FromArgbSystem (255, 79, 101, 125, "ControlDark", KnownColor.ControlDark);
  74. }
  75. }
  76. static public Color ControlDarkDark
  77. {
  78. get {
  79. return Color.FromArgbSystem (255, 0, 0, 0, "ControlDarkDark", KnownColor.ControlDarkDark);
  80. }
  81. }
  82. static public Color ControlLight
  83. {
  84. get {
  85. return Color.FromArgbSystem (255, 131, 153, 177, "ControlLight", KnownColor.ControlLight);
  86. }
  87. }
  88. static public Color ControlLightLight
  89. {
  90. get {
  91. return Color.FromArgbSystem (255, 193, 204, 217, "ControlLightLight", KnownColor.ControlLightLight);
  92. }
  93. }
  94. static public Color ControlText
  95. {
  96. get {
  97. return Color.FromArgbSystem (255, 0, 0, 0, "ControlText", KnownColor.ControlText);
  98. }
  99. }
  100. static public Color Desktop
  101. {
  102. get {
  103. return Color.FromArgbSystem (255, 0, 0, 0, "Desktop", KnownColor.Desktop);
  104. }
  105. }
  106. static public Color GrayText
  107. {
  108. get {
  109. return Color.FromArgbSystem (255, 79, 101, 125, "GrayText", KnownColor.GrayText);
  110. }
  111. }
  112. static public Color Highlight
  113. {
  114. get {
  115. return Color.FromArgbSystem (255, 0, 0, 128, "Highlight", KnownColor.Highlight);
  116. }
  117. }
  118. static public Color HighlightText
  119. {
  120. get {
  121. return Color.FromArgbSystem (255, 255, 255, 255, "HighlightText", KnownColor.HighlightText);
  122. }
  123. }
  124. static public Color HotTrack
  125. {
  126. get {
  127. return Color.FromArgbSystem (255, 0, 0, 255, "HotTrack", KnownColor.HotTrack);
  128. }
  129. }
  130. static public Color InactiveBorder
  131. {
  132. get {
  133. return Color.FromArgbSystem (255, 131, 153, 177, "InactiveBorder", KnownColor.InactiveBorder);
  134. }
  135. }
  136. static public Color InactiveCaption
  137. {
  138. get {
  139. return Color.FromArgbSystem (255, 128, 128, 128, "InactiveCaption", KnownColor.InactiveCaption);
  140. }
  141. }
  142. static public Color InactiveCaptionText
  143. {
  144. get {
  145. return Color.FromArgbSystem (255, 193, 204, 217, "InactiveCaptionText", KnownColor.InactiveCaptionText);
  146. }
  147. }
  148. static public Color Info
  149. {
  150. get {
  151. return Color.FromArgbSystem (255, 255, 255, 255, "Info", KnownColor.Info);
  152. }
  153. }
  154. static public Color InfoText
  155. {
  156. get {
  157. return Color.FromArgbSystem (255, 0, 0, 0, "InfoText", KnownColor.InfoText);
  158. }
  159. }
  160. static public Color Menu
  161. {
  162. get {
  163. return Color.FromArgbSystem (255, 131, 153, 177, "Menu", KnownColor.Menu);
  164. }
  165. }
  166. static public Color MenuText
  167. {
  168. get {
  169. return Color.FromArgbSystem (255, 0, 0, 0, "MenuText", KnownColor.MenuText);
  170. }
  171. }
  172. static public Color ScrollBar
  173. {
  174. get {
  175. return Color.FromArgbSystem (255, 193, 204, 217, "ScrollBar", KnownColor.ScrollBar);
  176. }
  177. }
  178. static public Color Window
  179. {
  180. get {
  181. return Color.FromArgbSystem (255, 255, 255, 255, "Window", KnownColor.Window);
  182. }
  183. }
  184. static public Color WindowFrame
  185. {
  186. get {
  187. return Color.FromArgbSystem (255, 0, 0, 0, "WindowFrame", KnownColor.WindowFrame);
  188. }
  189. }
  190. static public Color WindowText
  191. {
  192. get {
  193. return Color.FromArgbSystem (255, 0, 0, 0, "WindowText", KnownColor.WindowText);
  194. }
  195. }
  196. }
  197. }