const.go 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  1. // Copyright 2024 The tk9.0-go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package tk9_0 // import "modernc.org/tk9.0"
  5. import (
  6. "fmt"
  7. "strings"
  8. )
  9. type cursor string
  10. func (c cursor) optionString(*Window) string {
  11. return fmt.Sprintf(`-cursor %s`, string(c))
  12. }
  13. // Named cursor constants recognized on all platforms.
  14. //
  15. // Writing, for example, 'Arrow' as an option is the same as writing
  16. // 'Cursor("arrow")', but the compiler will catch any typos in the cursor name.
  17. const (
  18. Arrow = cursor("arrow")
  19. BasedArrowDown = cursor("based_arrow_down")
  20. BasedArrowUp = cursor("based_arrow_up")
  21. Boat = cursor("boat")
  22. Bogosity = cursor("bogosity")
  23. BottomLeftCorner = cursor("bottom_left_corner")
  24. BottomRightCorner = cursor("bottom_right_corner")
  25. BottomSide = cursor("bottom_side")
  26. BottomTee = cursor("bottom_tee")
  27. BoxSpiral = cursor("box_spiral")
  28. CenterPtr = cursor("center_ptr")
  29. Circle = cursor("circle")
  30. Clock = cursor("clock")
  31. CoffeeMug = cursor("coffee_mug")
  32. Cross = cursor("cross")
  33. CrossReverse = cursor("cross_reverse")
  34. Crosshair = cursor("crosshair")
  35. CursorIcon = cursor("icon")
  36. DiamondCross = cursor("diamond_cross")
  37. Dot = cursor("dot")
  38. Dotbox = cursor("dotbox")
  39. DoubleArrow = cursor("double_arrow")
  40. DraftLarge = cursor("draft_large")
  41. DraftSmall = cursor("draft_small")
  42. DrapedBox = cursor("draped_box")
  43. Exchange = cursor("exchange")
  44. Fleur = cursor("fleur")
  45. Gobbler = cursor("gobbler")
  46. Gumby = cursor("gumby")
  47. Hand1 = cursor("hand1")
  48. Hand2 = cursor("hand2")
  49. Heart = cursor("heart")
  50. IronCross = cursor("iron_cross")
  51. LeftPtr = cursor("left_ptr")
  52. LeftSide = cursor("left_side")
  53. LeftTee = cursor("left_tee")
  54. Leftbutton = cursor("leftbutton")
  55. LlAngle = cursor("ll_angle")
  56. LrAngle = cursor("lr_angle")
  57. Man = cursor("man")
  58. Middlebutton = cursor("middlebutton")
  59. Mouse = cursor("mouse")
  60. None = cursor("none")
  61. Pencil = cursor("pencil")
  62. Pirate = cursor("pirate")
  63. Plus = cursor("plus")
  64. QuestionArrow = cursor("question_arrow")
  65. RightPtr = cursor("right_ptr")
  66. RightSide = cursor("right_side")
  67. RightTee = cursor("right_tee")
  68. Rightbutton = cursor("rightbutton")
  69. RtlLogo = cursor("rtl_logo")
  70. Sailboat = cursor("sailboat")
  71. SbDownArrow = cursor("sb_down_arrow")
  72. SbHDoubleArrow = cursor("sb_h_double_arrow")
  73. SbLeftArrow = cursor("sb_left_arrow")
  74. SbRightArrow = cursor("sb_right_arrow")
  75. SbUpArrow = cursor("sb_up_arrow")
  76. SbVDoubleArrow = cursor("sb_v_double_arrow")
  77. Shuttle = cursor("shuttle")
  78. Sizing = cursor("sizing")
  79. Spider = cursor("spider")
  80. Spraycan = cursor("spraycan")
  81. Star = cursor("star")
  82. Target = cursor("target")
  83. Tcross = cursor("tcross")
  84. TopLeftArrow = cursor("top_left_arrow")
  85. TopLeftCorner = cursor("top_left_corner")
  86. TopRightCorner = cursor("top_right_corner")
  87. TopSide = cursor("top_side")
  88. TopTee = cursor("top_tee")
  89. Trek = cursor("trek")
  90. UlAngle = cursor("ul_angle")
  91. Umbrella = cursor("umbrella")
  92. UrAngle = cursor("ur_angle")
  93. Watch = cursor("watch")
  94. XCursor = cursor("X_cursor")
  95. Xterm = cursor("xterm")
  96. )
  97. // Additional Windows cursors.
  98. const (
  99. CursorSize = cursor("size")
  100. No = cursor("no")
  101. SizeNeSw = cursor("size_ne_sw")
  102. SizeNs = cursor("size_ns")
  103. SizeNwSe = cursor("size_nw_se")
  104. SizeWe = cursor("size_we")
  105. Starting = cursor("starting")
  106. Uparrow = cursor("uparrow")
  107. )
  108. // Additional macOS cursors.
  109. const (
  110. Aliasarrow = cursor("aliasarrow")
  111. Bucket = cursor("bucket")
  112. Cancel = cursor("cancel")
  113. Closedhand = cursor("closedhand")
  114. Contextualmenuarrow = cursor("contextualmenuarrow")
  115. Copyarrow = cursor("copyarrow")
  116. Countingdownhand = cursor("countingdownhand")
  117. Countingupanddownhand = cursor("countingupanddownhand")
  118. Countinguphand = cursor("countinguphand")
  119. CrossHair = cursor("cross-hair")
  120. CursorText = cursor("text")
  121. Eyedrop = cursor("eyedrop")
  122. EyedropFull = cursor("eyedrop-full")
  123. Fist = cursor("fist")
  124. Hand = cursor("hand")
  125. Help = cursor("help")
  126. Movearrow = cursor("movearrow")
  127. Notallowed = cursor("notallowed")
  128. Openhand = cursor("openhand")
  129. Pointinghand = cursor("pointinghand")
  130. Poof = cursor("poof")
  131. Resize = cursor("resize")
  132. Resizebottomleft = cursor("resizebottomleft")
  133. Resizebottomright = cursor("resizebottomright")
  134. Resizedown = cursor("resizedown")
  135. Resizeleft = cursor("resizeleft")
  136. Resizeleftright = cursor("resizeleftright")
  137. Resizeright = cursor("resizeright")
  138. Resizetopleft = cursor("resizetopleft")
  139. Resizetopright = cursor("resizetopright")
  140. Resizeup = cursor("resizeup")
  141. Resizeupdown = cursor("resizeupdown")
  142. Spinning = cursor("spinning")
  143. ZoomIn = cursor("zoom-in")
  144. ZoomOut = cursor("zoom-out")
  145. )
  146. // Additional macOS and Windows cursors.
  147. const (
  148. Wait = cursor("wait")
  149. )
  150. // Named colors. Writing, for example, 'Background(Agua)' is the same as
  151. // writing 'Background("agua")' but the compiler can catch any typos in the
  152. // color name.
  153. const (
  154. Agua = "agua" // R:0 G:255 B:255
  155. AliceBlue = "AliceBlue" // R:240 G:248 B:255
  156. AntiqueWhite = "AntiqueWhite" // R:250 G:235 B:215
  157. AntiqueWhite1 = "AntiqueWhite1" // R:255 G:239 B:219
  158. AntiqueWhite2 = "AntiqueWhite2" // R:238 G:223 B:204
  159. AntiqueWhite3 = "AntiqueWhite3" // R:205 G:192 B:176
  160. AntiqueWhite4 = "AntiqueWhite4" // R:139 G:131 B:120
  161. Aquamarine = "aquamarine" // R:127 G:255 B:212
  162. Aquamarine1 = "aquamarine1" // R:127 G:255 B:212
  163. Aquamarine2 = "aquamarine2" // R:118 G:238 B:198
  164. Aquamarine3 = "aquamarine3" // R:102 G:205 B:170
  165. Aquamarine4 = "aquamarine4" // R:69 G:139 B:116
  166. Azure = "azure" // R:240 G:255 B:255
  167. Azure1 = "azure1" // R:240 G:255 B:255
  168. Azure2 = "azure2" // R:224 G:238 B:238
  169. Azure3 = "azure3" // R:193 G:205 B:205
  170. Azure4 = "azure4" // R:131 G:139 B:139
  171. Beige = "beige" // R:245 G:245 B:220
  172. Bisque = "bisque" // R:255 G:228 B:196
  173. Bisque1 = "bisque1" // R:255 G:228 B:196
  174. Bisque2 = "bisque2" // R:238 G:213 B:183
  175. Bisque3 = "bisque3" // R:205 G:183 B:158
  176. Bisque4 = "bisque4" // R:139 G:125 B:107
  177. Black = "black" // R:0 G:0 B:0
  178. BlanchedAlmond = "BlanchedAlmond" // R:255 G:235 B:205
  179. Blue = "blue" // R:0 G:0 B:255
  180. Blue1 = "blue1" // R:0 G:0 B:255
  181. Blue2 = "blue2" // R:0 G:0 B:238
  182. Blue3 = "blue3" // R:0 G:0 B:205
  183. Blue4 = "blue4" // R:0 G:0 B:139
  184. BlueViolet = "BlueViolet" // R:138 G:43 B:226
  185. Brown = "brown" // R:165 G:42 B:42
  186. Brown1 = "brown1" // R:255 G:64 B:64
  187. Brown2 = "brown2" // R:238 G:59 B:59
  188. Brown3 = "brown3" // R:205 G:51 B:51
  189. Brown4 = "brown4" // R:139 G:35 B:35
  190. Burlywood = "burlywood" // R:222 G:184 B:135
  191. Burlywood1 = "burlywood1" // R:255 G:211 B:155
  192. Burlywood2 = "burlywood2" // R:238 G:197 B:145
  193. Burlywood3 = "burlywood3" // R:205 G:170 B:125
  194. Burlywood4 = "burlywood4" // R:139 G:115 B:85
  195. CadetBlue = "CadetBlue" // R:95 G:158 B:160
  196. CadetBlue1 = "CadetBlue1" // R:152 G:245 B:255
  197. CadetBlue2 = "CadetBlue2" // R:142 G:229 B:238
  198. CadetBlue3 = "CadetBlue3" // R:122 G:197 B:205
  199. CadetBlue4 = "CadetBlue4" // R:83 G:134 B:139
  200. Chartreuse = "chartreuse" // R:127 G:255 B:0
  201. Chartreuse1 = "chartreuse1" // R:127 G:255 B:0
  202. Chartreuse2 = "chartreuse2" // R:118 G:238 B:0
  203. Chartreuse3 = "chartreuse3" // R:102 G:205 B:0
  204. Chartreuse4 = "chartreuse4" // R:69 G:139 B:0
  205. Chocolate = "chocolate" // R:210 G:105 B:30
  206. Chocolate1 = "chocolate1" // R:255 G:127 B:36
  207. Chocolate2 = "chocolate2" // R:238 G:118 B:33
  208. Chocolate3 = "chocolate3" // R:205 G:102 B:29
  209. Chocolate4 = "chocolate4" // R:139 G:69 B:19
  210. Coral = "coral" // R:255 G:127 B:80
  211. Coral1 = "coral1" // R:255 G:114 B:86
  212. Coral2 = "coral2" // R:238 G:106 B:80
  213. Coral3 = "coral3" // R:205 G:91 B:69
  214. Coral4 = "coral4" // R:139 G:62 B:47
  215. CornflowerBlue = "CornflowerBlue" // R:100 G:149 B:237
  216. Cornsilk = "cornsilk" // R:255 G:248 B:220
  217. Cornsilk1 = "cornsilk1" // R:255 G:248 B:220
  218. Cornsilk2 = "cornsilk2" // R:238 G:232 B:205
  219. Cornsilk3 = "cornsilk3" // R:205 G:200 B:177
  220. Cornsilk4 = "cornsilk4" // R:139 G:136 B:120
  221. Crymson = "crymson" // R:220 G:20 B:60
  222. Cyan = "cyan" // R:0 G:255 B:255
  223. Cyan1 = "cyan1" // R:0 G:255 B:255
  224. Cyan2 = "cyan2" // R:0 G:238 B:238
  225. Cyan3 = "cyan3" // R:0 G:205 B:205
  226. Cyan4 = "cyan4" // R:0 G:139 B:139
  227. DarkBlue = "DarkBlue" // R:0 G:0 B:139
  228. DarkCyan = "DarkCyan" // R:0 G:139 B:139
  229. DarkGoldenrod = "DarkGoldenrod" // R:184 G:134 B:11
  230. DarkGoldenrod1 = "DarkGoldenrod1" // R:255 G:185 B:15
  231. DarkGoldenrod2 = "DarkGoldenrod2" // R:238 G:173 B:14
  232. DarkGoldenrod3 = "DarkGoldenrod3" // R:205 G:149 B:12
  233. DarkGoldenrod4 = "DarkGoldenrod4" // R:139 G:101 B:8
  234. DarkGray = "DarkGray" // R:169 G:169 B:169
  235. DarkGreen = "DarkGreen" // R:0 G:100 B:0
  236. DarkGrey = "DarkGrey" // R:169 G:169 B:169
  237. DarkKhaki = "DarkKhaki" // R:189 G:183 B:107
  238. DarkMagenta = "DarkMagenta" // R:139 G:0 B:139
  239. DarkOliveGreen = "DarkOliveGreen" // R:85 G:107 B:47
  240. DarkOliveGreen1 = "DarkOliveGreen1" // R:202 G:255 B:112
  241. DarkOliveGreen2 = "DarkOliveGreen2" // R:188 G:238 B:104
  242. DarkOliveGreen3 = "DarkOliveGreen3" // R:162 G:205 B:90
  243. DarkOliveGreen4 = "DarkOliveGreen4" // R:110 G:139 B:61
  244. DarkOrange = "DarkOrange" // R:255 G:140 B:0
  245. DarkOrange1 = "DarkOrange1" // R:255 G:127 B:0
  246. DarkOrange2 = "DarkOrange2" // R:238 G:118 B:0
  247. DarkOrange3 = "DarkOrange3" // R:205 G:102 B:0
  248. DarkOrange4 = "DarkOrange4" // R:139 G:69 B:0
  249. DarkOrchid = "DarkOrchid" // R:153 G:50 B:204
  250. DarkOrchid1 = "DarkOrchid1" // R:191 G:62 B:255
  251. DarkOrchid2 = "DarkOrchid2" // R:178 G:58 B:238
  252. DarkOrchid3 = "DarkOrchid3" // R:154 G:50 B:205
  253. DarkOrchid4 = "DarkOrchid4" // R:104 G:34 B:139
  254. DarkRed = "DarkRed" // R:139 G:0 B:0
  255. DarkSalmon = "DarkSalmon" // R:233 G:150 B:122
  256. DarkSeaGreen = "DarkSeaGreen" // R:143 G:188 B:143
  257. DarkSeaGreen1 = "DarkSeaGreen1" // R:193 G:255 B:193
  258. DarkSeaGreen2 = "DarkSeaGreen2" // R:180 G:238 B:180
  259. DarkSeaGreen3 = "DarkSeaGreen3" // R:155 G:205 B:155
  260. DarkSeaGreen4 = "DarkSeaGreen4" // R:105 G:139 B:105
  261. DarkSlateBlue = "DarkSlateBlue" // R:72 G:61 B:139
  262. DarkSlateGray = "DarkSlateGray" // R:47 G:79 B:79
  263. DarkSlateGray1 = "DarkSlateGray1" // R:151 G:255 B:255
  264. DarkSlateGray2 = "DarkSlateGray2" // R:141 G:238 B:238
  265. DarkSlateGray3 = "DarkSlateGray3" // R:121 G:205 B:205
  266. DarkSlateGray4 = "DarkSlateGray4" // R:82 G:139 B:139
  267. DarkSlateGrey = "DarkSlateGrey" // R:47 G:79 B:79
  268. DarkTurquoise = "DarkTurquoise" // R:0 G:206 B:209
  269. DarkViolet = "DarkViolet" // R:148 G:0 B:211
  270. DeepPink = "DeepPink" // R:255 G:20 B:147
  271. DeepPink1 = "DeepPink1" // R:255 G:20 B:147
  272. DeepPink2 = "DeepPink2" // R:238 G:18 B:137
  273. DeepPink3 = "DeepPink3" // R:205 G:16 B:118
  274. DeepPink4 = "DeepPink4" // R:139 G:10 B:80
  275. DeepSkyBlue = "DeepSkyBlue" // R:0 G:191 B:255
  276. DeepSkyBlue1 = "DeepSkyBlue1" // R:0 G:191 B:255
  277. DeepSkyBlue2 = "DeepSkyBlue2" // R:0 G:178 B:238
  278. DeepSkyBlue3 = "DeepSkyBlue3" // R:0 G:154 B:205
  279. DeepSkyBlue4 = "DeepSkyBlue4" // R:0 G:104 B:139
  280. DimGray = "DimGray" // R:105 G:105 B:105
  281. DimGrey = "DimGrey" // R:105 G:105 B:105
  282. DodgerBlue = "DodgerBlue" // R:30 G:144 B:255
  283. DodgerBlue1 = "DodgerBlue1" // R:30 G:144 B:255
  284. DodgerBlue2 = "DodgerBlue2" // R:28 G:134 B:238
  285. DodgerBlue3 = "DodgerBlue3" // R:24 G:116 B:205
  286. DodgerBlue4 = "DodgerBlue4" // R:16 G:78 B:139
  287. Firebrick = "firebrick" // R:178 G:34 B:34
  288. Firebrick1 = "firebrick1" // R:255 G:48 B:48
  289. Firebrick2 = "firebrick2" // R:238 G:44 B:44
  290. Firebrick3 = "firebrick3" // R:205 G:38 B:38
  291. Firebrick4 = "firebrick4" // R:139 G:26 B:26
  292. FloralWhite = "FloralWhite" // R:255 G:250 B:240
  293. ForestGreen = "ForestGreen" // R:34 G:139 B:34
  294. Fuchsia = "fuchsia" // R:255 G:0 B:255
  295. Gainsboro = "gainsboro" // R:220 G:220 B:220
  296. GhostWhite = "GhostWhite" // R:248 G:248 B:255
  297. Gold = "gold" // R:255 G:215 B:0
  298. Gold1 = "gold1" // R:255 G:215 B:0
  299. Gold2 = "gold2" // R:238 G:201 B:0
  300. Gold3 = "gold3" // R:205 G:173 B:0
  301. Gold4 = "gold4" // R:139 G:117 B:0
  302. Goldenrod = "goldenrod" // R:218 G:165 B:32
  303. Goldenrod1 = "goldenrod1" // R:255 G:193 B:37
  304. Goldenrod2 = "goldenrod2" // R:238 G:180 B:34
  305. Goldenrod3 = "goldenrod3" // R:205 G:155 B:29
  306. Goldenrod4 = "goldenrod4" // R:139 G:105 B:20
  307. Gray = "gray" // R:128 G:128 B:128
  308. Gray0 = "gray0" // R:0 G:0 B:0
  309. Gray1 = "gray1" // R:3 G:3 B:3
  310. Gray10 = "gray10" // R:26 G:26 B:26
  311. Gray100 = "gray100" // R:255 G:255 B:255
  312. Gray11 = "gray11" // R:28 G:28 B:28
  313. Gray12 = "gray12" // R:31 G:31 B:31
  314. Gray13 = "gray13" // R:33 G:33 B:33
  315. Gray14 = "gray14" // R:36 G:36 B:36
  316. Gray15 = "gray15" // R:38 G:38 B:38
  317. Gray16 = "gray16" // R:41 G:41 B:41
  318. Gray17 = "gray17" // R:43 G:43 B:43
  319. Gray18 = "gray18" // R:46 G:46 B:46
  320. Gray19 = "gray19" // R:48 G:48 B:48
  321. Gray2 = "gray2" // R:5 G:5 B:5
  322. Gray20 = "gray20" // R:51 G:51 B:51
  323. Gray21 = "gray21" // R:54 G:54 B:54
  324. Gray22 = "gray22" // R:56 G:56 B:56
  325. Gray23 = "gray23" // R:59 G:59 B:59
  326. Gray24 = "gray24" // R:61 G:61 B:61
  327. Gray25 = "gray25" // R:64 G:64 B:64
  328. Gray26 = "gray26" // R:66 G:66 B:66
  329. Gray27 = "gray27" // R:69 G:69 B:69
  330. Gray28 = "gray28" // R:71 G:71 B:71
  331. Gray29 = "gray29" // R:74 G:74 B:74
  332. Gray3 = "gray3" // R:8 G:8 B:8
  333. Gray30 = "gray30" // R:77 G:77 B:77
  334. Gray31 = "gray31" // R:79 G:79 B:79
  335. Gray32 = "gray32" // R:82 G:82 B:82
  336. Gray33 = "gray33" // R:84 G:84 B:84
  337. Gray34 = "gray34" // R:87 G:87 B:87
  338. Gray35 = "gray35" // R:89 G:89 B:89
  339. Gray36 = "gray36" // R:92 G:92 B:92
  340. Gray37 = "gray37" // R:94 G:94 B:94
  341. Gray38 = "gray38" // R:97 G:97 B:97
  342. Gray39 = "gray39" // R:99 G:99 B:99
  343. Gray4 = "gray4" // R:10 G:10 B:10
  344. Gray40 = "gray40" // R:102 G:102 B:102
  345. Gray41 = "gray41" // R:105 G:105 B:105
  346. Gray42 = "gray42" // R:107 G:107 B:107
  347. Gray43 = "gray43" // R:110 G:110 B:110
  348. Gray44 = "gray44" // R:112 G:112 B:112
  349. Gray45 = "gray45" // R:115 G:115 B:115
  350. Gray46 = "gray46" // R:117 G:117 B:117
  351. Gray47 = "gray47" // R:120 G:120 B:120
  352. Gray48 = "gray48" // R:122 G:122 B:122
  353. Gray49 = "gray49" // R:125 G:125 B:125
  354. Gray5 = "gray5" // R:13 G:13 B:13
  355. Gray50 = "gray50" // R:127 G:127 B:127
  356. Gray51 = "gray51" // R:130 G:130 B:130
  357. Gray52 = "gray52" // R:133 G:133 B:133
  358. Gray53 = "gray53" // R:135 G:135 B:135
  359. Gray54 = "gray54" // R:138 G:138 B:138
  360. Gray55 = "gray55" // R:140 G:140 B:140
  361. Gray56 = "gray56" // R:143 G:143 B:143
  362. Gray57 = "gray57" // R:145 G:145 B:145
  363. Gray58 = "gray58" // R:148 G:148 B:148
  364. Gray59 = "gray59" // R:150 G:150 B:150
  365. Gray6 = "gray6" // R:15 G:15 B:15
  366. Gray60 = "gray60" // R:153 G:153 B:153
  367. Gray61 = "gray61" // R:156 G:156 B:156
  368. Gray62 = "gray62" // R:158 G:158 B:158
  369. Gray63 = "gray63" // R:161 G:161 B:161
  370. Gray64 = "gray64" // R:163 G:163 B:163
  371. Gray65 = "gray65" // R:166 G:166 B:166
  372. Gray66 = "gray66" // R:168 G:168 B:168
  373. Gray67 = "gray67" // R:171 G:171 B:171
  374. Gray68 = "gray68" // R:173 G:173 B:173
  375. Gray69 = "gray69" // R:176 G:176 B:176
  376. Gray7 = "gray7" // R:18 G:18 B:18
  377. Gray70 = "gray70" // R:179 G:179 B:179
  378. Gray71 = "gray71" // R:181 G:181 B:181
  379. Gray72 = "gray72" // R:184 G:184 B:184
  380. Gray73 = "gray73" // R:186 G:186 B:186
  381. Gray74 = "gray74" // R:189 G:189 B:189
  382. Gray75 = "gray75" // R:191 G:191 B:191
  383. Gray76 = "gray76" // R:194 G:194 B:194
  384. Gray77 = "gray77" // R:196 G:196 B:196
  385. Gray78 = "gray78" // R:199 G:199 B:199
  386. Gray79 = "gray79" // R:201 G:201 B:201
  387. Gray8 = "gray8" // R:20 G:20 B:20
  388. Gray80 = "gray80" // R:204 G:204 B:204
  389. Gray81 = "gray81" // R:207 G:207 B:207
  390. Gray82 = "gray82" // R:209 G:209 B:209
  391. Gray83 = "gray83" // R:212 G:212 B:212
  392. Gray84 = "gray84" // R:214 G:214 B:214
  393. Gray85 = "gray85" // R:217 G:217 B:217
  394. Gray86 = "gray86" // R:219 G:219 B:219
  395. Gray87 = "gray87" // R:222 G:222 B:222
  396. Gray88 = "gray88" // R:224 G:224 B:224
  397. Gray89 = "gray89" // R:227 G:227 B:227
  398. Gray9 = "gray9" // R:23 G:23 B:23
  399. Gray90 = "gray90" // R:229 G:229 B:229
  400. Gray91 = "gray91" // R:232 G:232 B:232
  401. Gray92 = "gray92" // R:235 G:235 B:235
  402. Gray93 = "gray93" // R:237 G:237 B:237
  403. Gray94 = "gray94" // R:240 G:240 B:240
  404. Gray95 = "gray95" // R:242 G:242 B:242
  405. Gray96 = "gray96" // R:245 G:245 B:245
  406. Gray97 = "gray97" // R:247 G:247 B:247
  407. Gray98 = "gray98" // R:250 G:250 B:250
  408. Gray99 = "gray99" // R:252 G:252 B:252
  409. Green = "green" // R:0 G:128 B:0
  410. Green1 = "green1" // R:0 G:255 B:0
  411. Green2 = "green2" // R:0 G:238 B:0
  412. Green3 = "green3" // R:0 G:205 B:0
  413. Green4 = "green4" // R:0 G:139 B:0
  414. GreenYellow = "GreenYellow" // R:173 G:255 B:47
  415. Grey = "grey" // R:128 G:128 B:128
  416. Grey0 = "grey0" // R:0 G:0 B:0
  417. Grey1 = "grey1" // R:3 G:3 B:3
  418. Grey10 = "grey10" // R:26 G:26 B:26
  419. Grey100 = "grey100" // R:255 G:255 B:255
  420. Grey11 = "grey11" // R:28 G:28 B:28
  421. Grey12 = "grey12" // R:31 G:31 B:31
  422. Grey13 = "grey13" // R:33 G:33 B:33
  423. Grey14 = "grey14" // R:36 G:36 B:36
  424. Grey15 = "grey15" // R:38 G:38 B:38
  425. Grey16 = "grey16" // R:41 G:41 B:41
  426. Grey17 = "grey17" // R:43 G:43 B:43
  427. Grey18 = "grey18" // R:46 G:46 B:46
  428. Grey19 = "grey19" // R:48 G:48 B:48
  429. Grey2 = "grey2" // R:5 G:5 B:5
  430. Grey20 = "grey20" // R:51 G:51 B:51
  431. Grey21 = "grey21" // R:54 G:54 B:54
  432. Grey22 = "grey22" // R:56 G:56 B:56
  433. Grey23 = "grey23" // R:59 G:59 B:59
  434. Grey24 = "grey24" // R:61 G:61 B:61
  435. Grey25 = "grey25" // R:64 G:64 B:64
  436. Grey26 = "grey26" // R:66 G:66 B:66
  437. Grey27 = "grey27" // R:69 G:69 B:69
  438. Grey28 = "grey28" // R:71 G:71 B:71
  439. Grey29 = "grey29" // R:74 G:74 B:74
  440. Grey3 = "grey3" // R:8 G:8 B:8
  441. Grey30 = "grey30" // R:77 G:77 B:77
  442. Grey31 = "grey31" // R:79 G:79 B:79
  443. Grey32 = "grey32" // R:82 G:82 B:82
  444. Grey33 = "grey33" // R:84 G:84 B:84
  445. Grey34 = "grey34" // R:87 G:87 B:87
  446. Grey35 = "grey35" // R:89 G:89 B:89
  447. Grey36 = "grey36" // R:92 G:92 B:92
  448. Grey37 = "grey37" // R:94 G:94 B:94
  449. Grey38 = "grey38" // R:97 G:97 B:97
  450. Grey39 = "grey39" // R:99 G:99 B:99
  451. Grey4 = "grey4" // R:10 G:10 B:10
  452. Grey40 = "grey40" // R:102 G:102 B:102
  453. Grey41 = "grey41" // R:105 G:105 B:105
  454. Grey42 = "grey42" // R:107 G:107 B:107
  455. Grey43 = "grey43" // R:110 G:110 B:110
  456. Grey44 = "grey44" // R:112 G:112 B:112
  457. Grey45 = "grey45" // R:115 G:115 B:115
  458. Grey46 = "grey46" // R:117 G:117 B:117
  459. Grey47 = "grey47" // R:120 G:120 B:120
  460. Grey48 = "grey48" // R:122 G:122 B:122
  461. Grey49 = "grey49" // R:125 G:125 B:125
  462. Grey5 = "grey5" // R:13 G:13 B:13
  463. Grey50 = "grey50" // R:127 G:127 B:127
  464. Grey51 = "grey51" // R:130 G:130 B:130
  465. Grey52 = "grey52" // R:133 G:133 B:133
  466. Grey53 = "grey53" // R:135 G:135 B:135
  467. Grey54 = "grey54" // R:138 G:138 B:138
  468. Grey55 = "grey55" // R:140 G:140 B:140
  469. Grey56 = "grey56" // R:143 G:143 B:143
  470. Grey57 = "grey57" // R:145 G:145 B:145
  471. Grey58 = "grey58" // R:148 G:148 B:148
  472. Grey59 = "grey59" // R:150 G:150 B:150
  473. Grey6 = "grey6" // R:15 G:15 B:15
  474. Grey60 = "grey60" // R:153 G:153 B:153
  475. Grey61 = "grey61" // R:156 G:156 B:156
  476. Grey62 = "grey62" // R:158 G:158 B:158
  477. Grey63 = "grey63" // R:161 G:161 B:161
  478. Grey64 = "grey64" // R:163 G:163 B:163
  479. Grey65 = "grey65" // R:166 G:166 B:166
  480. Grey66 = "grey66" // R:168 G:168 B:168
  481. Grey67 = "grey67" // R:171 G:171 B:171
  482. Grey68 = "grey68" // R:173 G:173 B:173
  483. Grey69 = "grey69" // R:176 G:176 B:176
  484. Grey7 = "grey7" // R:18 G:18 B:18
  485. Grey70 = "grey70" // R:179 G:179 B:179
  486. Grey71 = "grey71" // R:181 G:181 B:181
  487. Grey72 = "grey72" // R:184 G:184 B:184
  488. Grey73 = "grey73" // R:186 G:186 B:186
  489. Grey74 = "grey74" // R:189 G:189 B:189
  490. Grey75 = "grey75" // R:191 G:191 B:191
  491. Grey76 = "grey76" // R:194 G:194 B:194
  492. Grey77 = "grey77" // R:196 G:196 B:196
  493. Grey78 = "grey78" // R:199 G:199 B:199
  494. Grey79 = "grey79" // R:201 G:201 B:201
  495. Grey8 = "grey8" // R:20 G:20 B:20
  496. Grey80 = "grey80" // R:204 G:204 B:204
  497. Grey81 = "grey81" // R:207 G:207 B:207
  498. Grey82 = "grey82" // R:209 G:209 B:209
  499. Grey83 = "grey83" // R:212 G:212 B:212
  500. Grey84 = "grey84" // R:214 G:214 B:214
  501. Grey85 = "grey85" // R:217 G:217 B:217
  502. Grey86 = "grey86" // R:219 G:219 B:219
  503. Grey87 = "grey87" // R:222 G:222 B:222
  504. Grey88 = "grey88" // R:224 G:224 B:224
  505. Grey89 = "grey89" // R:227 G:227 B:227
  506. Grey9 = "grey9" // R:23 G:23 B:23
  507. Grey90 = "grey90" // R:229 G:229 B:229
  508. Grey91 = "grey91" // R:232 G:232 B:232
  509. Grey92 = "grey92" // R:235 G:235 B:235
  510. Grey93 = "grey93" // R:237 G:237 B:237
  511. Grey94 = "grey94" // R:240 G:240 B:240
  512. Grey95 = "grey95" // R:242 G:242 B:242
  513. Grey96 = "grey96" // R:245 G:245 B:245
  514. Grey97 = "grey97" // R:247 G:247 B:247
  515. Grey98 = "grey98" // R:250 G:250 B:250
  516. Grey99 = "grey99" // R:252 G:252 B:252
  517. Honeydew = "honeydew" // R:240 G:255 B:240
  518. Honeydew1 = "honeydew1" // R:240 G:255 B:240
  519. Honeydew2 = "honeydew2" // R:224 G:238 B:224
  520. Honeydew3 = "honeydew3" // R:193 G:205 B:193
  521. Honeydew4 = "honeydew4" // R:131 G:139 B:131
  522. HotPink = "HotPink" // R:255 G:105 B:180
  523. HotPink1 = "HotPink1" // R:255 G:110 B:180
  524. HotPink2 = "HotPink2" // R:238 G:106 B:167
  525. HotPink3 = "HotPink3" // R:205 G:96 B:144
  526. HotPink4 = "HotPink4" // R:139 G:58 B:98
  527. IndianRed = "IndianRed" // R:205 G:92 B:92
  528. IndianRed1 = "IndianRed1" // R:255 G:106 B:106
  529. IndianRed2 = "IndianRed2" // R:238 G:99 B:99
  530. IndianRed3 = "IndianRed3" // R:205 G:85 B:85
  531. IndianRed4 = "IndianRed4" // R:139 G:58 B:58
  532. Indigo = "indigo" // R:75 G:0 B:130
  533. Ivory = "ivory" // R:255 G:255 B:240
  534. Ivory1 = "ivory1" // R:255 G:255 B:240
  535. Ivory2 = "ivory2" // R:238 G:238 B:224
  536. Ivory3 = "ivory3" // R:205 G:205 B:193
  537. Ivory4 = "ivory4" // R:139 G:139 B:131
  538. Khaki = "khaki" // R:240 G:230 B:140
  539. Khaki1 = "khaki1" // R:255 G:246 B:143
  540. Khaki2 = "khaki2" // R:238 G:230 B:133
  541. Khaki3 = "khaki3" // R:205 G:198 B:115
  542. Khaki4 = "khaki4" // R:139 G:134 B:78
  543. Lavender = "lavender" // R:230 G:230 B:250
  544. LavenderBlush = "LavenderBlush" // R:255 G:240 B:245
  545. LavenderBlush1 = "LavenderBlush1" // R:255 G:240 B:245
  546. LavenderBlush2 = "LavenderBlush2" // R:238 G:224 B:229
  547. LavenderBlush3 = "LavenderBlush3" // R:205 G:193 B:197
  548. LavenderBlush4 = "LavenderBlush4" // R:139 G:131 B:134
  549. LawnGreen = "LawnGreen" // R:124 G:252 B:0
  550. LemonChiffon = "LemonChiffon" // R:255 G:250 B:205
  551. LemonChiffon1 = "LemonChiffon1" // R:255 G:250 B:205
  552. LemonChiffon2 = "LemonChiffon2" // R:238 G:233 B:191
  553. LemonChiffon3 = "LemonChiffon3" // R:205 G:201 B:165
  554. LemonChiffon4 = "LemonChiffon4" // R:139 G:137 B:112
  555. LightBlue = "LightBlue" // R:173 G:216 B:230
  556. LightBlue1 = "LightBlue1" // R:191 G:239 B:255
  557. LightBlue2 = "LightBlue2" // R:178 G:223 B:238
  558. LightBlue3 = "LightBlue3" // R:154 G:192 B:205
  559. LightBlue4 = "LightBlue4" // R:104 G:131 B:139
  560. LightCoral = "LightCoral" // R:240 G:128 B:128
  561. LightCyan = "LightCyan" // R:224 G:255 B:255
  562. LightCyan1 = "LightCyan1" // R:224 G:255 B:255
  563. LightCyan2 = "LightCyan2" // R:209 G:238 B:238
  564. LightCyan3 = "LightCyan3" // R:180 G:205 B:205
  565. LightCyan4 = "LightCyan4" // R:122 G:139 B:139
  566. LightGoldenrod = "LightGoldenrod" // R:238 G:221 B:130
  567. LightGoldenrod1 = "LightGoldenrod1" // R:255 G:236 B:139
  568. LightGoldenrod2 = "LightGoldenrod2" // R:238 G:220 B:130
  569. LightGoldenrod3 = "LightGoldenrod3" // R:205 G:190 B:112
  570. LightGoldenrod4 = "LightGoldenrod4" // R:139 G:129 B:76
  571. LightGoldenrodYellow = "LightGoldenrodYellow" // R:250 G:250 B:210
  572. LightGray = "LightGray" // R:211 G:211 B:211
  573. LightGreen = "LightGreen" // R:144 G:238 B:144
  574. LightGrey = "LightGrey" // R:211 G:211 B:211
  575. LightPink = "LightPink" // R:255 G:182 B:193
  576. LightPink1 = "LightPink1" // R:255 G:174 B:185
  577. LightPink2 = "LightPink2" // R:238 G:162 B:173
  578. LightPink3 = "LightPink3" // R:205 G:140 B:149
  579. LightPink4 = "LightPink4" // R:139 G:95 B:101
  580. LightSalmon = "LightSalmon" // R:255 G:160 B:122
  581. LightSalmon1 = "LightSalmon1" // R:255 G:160 B:122
  582. LightSalmon2 = "LightSalmon2" // R:238 G:149 B:114
  583. LightSalmon3 = "LightSalmon3" // R:205 G:129 B:98
  584. LightSalmon4 = "LightSalmon4" // R:139 G:87 B:66
  585. LightSeaGreen = "LightSeaGreen" // R:32 G:178 B:170
  586. LightSkyBlue = "LightSkyBlue" // R:135 G:206 B:250
  587. LightSkyBlue1 = "LightSkyBlue1" // R:176 G:226 B:255
  588. LightSkyBlue2 = "LightSkyBlue2" // R:164 G:211 B:238
  589. LightSkyBlue3 = "LightSkyBlue3" // R:141 G:182 B:205
  590. LightSkyBlue4 = "LightSkyBlue4" // R:96 G:123 B:139
  591. LightSlateBlue = "LightSlateBlue" // R:132 G:112 B:255
  592. LightSlateGray = "LightSlateGray" // R:119 G:136 B:153
  593. LightSlateGrey = "LightSlateGrey" // R:119 G:136 B:153
  594. LightSteelBlue = "LightSteelBlue" // R:176 G:196 B:222
  595. LightSteelBlue1 = "LightSteelBlue1" // R:202 G:225 B:255
  596. LightSteelBlue2 = "LightSteelBlue2" // R:188 G:210 B:238
  597. LightSteelBlue3 = "LightSteelBlue3" // R:162 G:181 B:205
  598. LightSteelBlue4 = "LightSteelBlue4" // R:110 G:123 B:139
  599. LightYellow = "LightYellow" // R:255 G:255 B:224
  600. LightYellow1 = "LightYellow1" // R:255 G:255 B:224
  601. LightYellow2 = "LightYellow2" // R:238 G:238 B:209
  602. LightYellow3 = "LightYellow3" // R:205 G:205 B:180
  603. LightYellow4 = "LightYellow4" // R:139 G:139 B:122
  604. Lime = "lime" // R:0 G:255 B:0
  605. LimeGreen = "LimeGreen" // R:50 G:205 B:50
  606. Linen = "linen" // R:250 G:240 B:230
  607. Magenta = "magenta" // R:255 G:0 B:255
  608. Magenta1 = "magenta1" // R:255 G:0 B:255
  609. Magenta2 = "magenta2" // R:238 G:0 B:238
  610. Magenta3 = "magenta3" // R:205 G:0 B:205
  611. Magenta4 = "magenta4" // R:139 G:0 B:139
  612. Maroon = "maroon" // R:128 G:0 B:0
  613. Maroon1 = "maroon1" // R:255 G:52 B:179
  614. Maroon2 = "maroon2" // R:238 G:48 B:167
  615. Maroon3 = "maroon3" // R:205 G:41 B:144
  616. Maroon4 = "maroon4" // R:139 G:28 B:98
  617. MediumAquamarine = "MediumAquamarine" // R:102 G:205 B:170
  618. MediumBlue = "MediumBlue" // R:0 G:0 B:205
  619. MediumOrchid = "MediumOrchid" // R:186 G:85 B:211
  620. MediumOrchid1 = "MediumOrchid1" // R:224 G:102 B:255
  621. MediumOrchid2 = "MediumOrchid2" // R:209 G:95 B:238
  622. MediumOrchid3 = "MediumOrchid3" // R:180 G:82 B:205
  623. MediumOrchid4 = "MediumOrchid4" // R:122 G:55 B:139
  624. MediumPurple = "MediumPurple" // R:147 G:112 B:219
  625. MediumPurple1 = "MediumPurple1" // R:171 G:130 B:255
  626. MediumPurple2 = "MediumPurple2" // R:159 G:121 B:238
  627. MediumPurple3 = "MediumPurple3" // R:137 G:104 B:205
  628. MediumPurple4 = "MediumPurple4" // R:93 G:71 B:139
  629. MediumSeaGreen = "MediumSeaGreen" // R:60 G:179 B:113
  630. MediumSlateBlue = "MediumSlateBlue" // R:123 G:104 B:238
  631. MediumSpringGreen = "MediumSpringGreen" // R:0 G:250 B:154
  632. MediumTurquoise = "MediumTurquoise" // R:72 G:209 B:204
  633. MediumVioletRed = "MediumVioletRed" // R:199 G:21 B:133
  634. MidnightBlue = "MidnightBlue" // R:25 G:25 B:112
  635. MintCream = "MintCream" // R:245 G:255 B:250
  636. MistyRose = "MistyRose" // R:255 G:228 B:225
  637. MistyRose1 = "MistyRose1" // R:255 G:228 B:225
  638. MistyRose2 = "MistyRose2" // R:238 G:213 B:210
  639. MistyRose3 = "MistyRose3" // R:205 G:183 B:181
  640. MistyRose4 = "MistyRose4" // R:139 G:125 B:123
  641. Moccasin = "moccasin" // R:255 G:228 B:181
  642. NavajoWhite = "NavajoWhite" // R:255 G:222 B:173
  643. NavajoWhite1 = "NavajoWhite1" // R:255 G:222 B:173
  644. NavajoWhite2 = "NavajoWhite2" // R:238 G:207 B:161
  645. NavajoWhite3 = "NavajoWhite3" // R:205 G:179 B:139
  646. NavajoWhite4 = "NavajoWhite4" // R:139 G:121 B:94
  647. Navy = "navy" // R:0 G:0 B:128
  648. NavyBlue = "NavyBlue" // R:0 G:0 B:128
  649. OldLace = "OldLace" // R:253 G:245 B:230
  650. Olive = "olive" // R:128 G:128 B:0
  651. OliveDrab = "OliveDrab" // R:107 G:142 B:35
  652. OliveDrab1 = "OliveDrab1" // R:192 G:255 B:62
  653. OliveDrab2 = "OliveDrab2" // R:179 G:238 B:58
  654. OliveDrab3 = "OliveDrab3" // R:154 G:205 B:50
  655. OliveDrab4 = "OliveDrab4" // R:105 G:139 B:34
  656. Orange = "orange" // R:255 G:165 B:0
  657. Orange1 = "orange1" // R:255 G:165 B:0
  658. Orange2 = "orange2" // R:238 G:154 B:0
  659. Orange3 = "orange3" // R:205 G:133 B:0
  660. Orange4 = "orange4" // R:139 G:90 B:0
  661. OrangeRed = "OrangeRed" // R:255 G:69 B:0
  662. OrangeRed1 = "OrangeRed1" // R:255 G:69 B:0
  663. OrangeRed2 = "OrangeRed2" // R:238 G:64 B:0
  664. OrangeRed3 = "OrangeRed3" // R:205 G:55 B:0
  665. OrangeRed4 = "OrangeRed4" // R:139 G:37 B:0
  666. Orchid = "orchid" // R:218 G:112 B:214
  667. Orchid1 = "orchid1" // R:255 G:131 B:250
  668. Orchid2 = "orchid2" // R:238 G:122 B:233
  669. Orchid3 = "orchid3" // R:205 G:105 B:201
  670. Orchid4 = "orchid4" // R:139 G:71 B:137
  671. PaleGoldenrod = "PaleGoldenrod" // R:238 G:232 B:170
  672. PaleGreen = "PaleGreen" // R:152 G:251 B:152
  673. PaleGreen1 = "PaleGreen1" // R:154 G:255 B:154
  674. PaleGreen2 = "PaleGreen2" // R:144 G:238 B:144
  675. PaleGreen3 = "PaleGreen3" // R:124 G:205 B:124
  676. PaleGreen4 = "PaleGreen4" // R:84 G:139 B:84
  677. PaleTurquoise = "PaleTurquoise" // R:175 G:238 B:238
  678. PaleTurquoise1 = "PaleTurquoise1" // R:187 G:255 B:255
  679. PaleTurquoise2 = "PaleTurquoise2" // R:174 G:238 B:238
  680. PaleTurquoise3 = "PaleTurquoise3" // R:150 G:205 B:205
  681. PaleTurquoise4 = "PaleTurquoise4" // R:102 G:139 B:139
  682. PaleVioletRed = "PaleVioletRed" // R:219 G:112 B:147
  683. PaleVioletRed1 = "PaleVioletRed1" // R:255 G:130 B:171
  684. PaleVioletRed2 = "PaleVioletRed2" // R:238 G:121 B:159
  685. PaleVioletRed3 = "PaleVioletRed3" // R:205 G:104 B:127
  686. PaleVioletRed4 = "PaleVioletRed4" // R:139 G:71 B:93
  687. PapayaWhip = "PapayaWhip" // R:255 G:239 B:213
  688. PeachPuff = "PeachPuff" // R:255 G:218 B:185
  689. PeachPuff1 = "PeachPuff1" // R:255 G:218 B:185
  690. PeachPuff2 = "PeachPuff2" // R:238 G:203 B:173
  691. PeachPuff3 = "PeachPuff3" // R:205 G:175 B:149
  692. PeachPuff4 = "PeachPuff4" // R:139 G:119 B:101
  693. Peru = "peru" // R:205 G:133 B:63
  694. Pink = "pink" // R:255 G:192 B:203
  695. Pink1 = "pink1" // R:255 G:181 B:197
  696. Pink2 = "pink2" // R:238 G:169 B:184
  697. Pink3 = "pink3" // R:205 G:145 B:158
  698. Pink4 = "pink4" // R:139 G:99 B:108
  699. Plum = "plum" // R:221 G:160 B:221
  700. Plum1 = "plum1" // R:255 G:187 B:255
  701. Plum2 = "plum2" // R:238 G:174 B:238
  702. Plum3 = "plum3" // R:205 G:150 B:205
  703. Plum4 = "plum4" // R:139 G:102 B:139
  704. PowderBlue = "PowderBlue" // R:176 G:224 B:230
  705. Purple = "purple" // R:128 G:0 B:128
  706. Purple1 = "purple1" // R:155 G:48 B:255
  707. Purple2 = "purple2" // R:145 G:44 B:238
  708. Purple3 = "purple3" // R:125 G:38 B:205
  709. Purple4 = "purple4" // R:85 G:26 B:139
  710. Red = "red" // R:255 G:0 B:0
  711. Red1 = "red1" // R:255 G:0 B:0
  712. Red2 = "red2" // R:238 G:0 B:0
  713. Red3 = "red3" // R:205 G:0 B:0
  714. Red4 = "red4" // R:139 G:0 B:0
  715. RosyBrown = "RosyBrown" // R:188 G:143 B:143
  716. RosyBrown1 = "RosyBrown1" // R:255 G:193 B:193
  717. RosyBrown2 = "RosyBrown2" // R:238 G:180 B:180
  718. RosyBrown3 = "RosyBrown3" // R:205 G:155 B:155
  719. RosyBrown4 = "RosyBrown4" // R:139 G:105 B:105
  720. RoyalBlue = "RoyalBlue" // R:65 G:105 B:225
  721. RoyalBlue1 = "RoyalBlue1" // R:72 G:118 B:255
  722. RoyalBlue2 = "RoyalBlue2" // R:67 G:110 B:238
  723. RoyalBlue3 = "RoyalBlue3" // R:58 G:95 B:205
  724. RoyalBlue4 = "RoyalBlue4" // R:39 G:64 B:139
  725. SaddleBrown = "SaddleBrown" // R:139 G:69 B:19
  726. Salmon = "salmon" // R:250 G:128 B:114
  727. Salmon1 = "salmon1" // R:255 G:140 B:105
  728. Salmon2 = "salmon2" // R:238 G:130 B:98
  729. Salmon3 = "salmon3" // R:205 G:112 B:84
  730. Salmon4 = "salmon4" // R:139 G:76 B:57
  731. SandyBrown = "SandyBrown" // R:244 G:164 B:96
  732. SeaGreen = "SeaGreen" // R:46 G:139 B:87
  733. SeaGreen1 = "SeaGreen1" // R:84 G:255 B:159
  734. SeaGreen2 = "SeaGreen2" // R:78 G:238 B:148
  735. SeaGreen3 = "SeaGreen3" // R:67 G:205 B:128
  736. SeaGreen4 = "SeaGreen4" // R:46 G:139 B:87
  737. Seashell = "seashell" // R:255 G:245 B:238
  738. Seashell1 = "seashell1" // R:255 G:245 B:238
  739. Seashell2 = "seashell2" // R:238 G:229 B:222
  740. Seashell3 = "seashell3" // R:205 G:197 B:191
  741. Seashell4 = "seashell4" // R:139 G:134 B:130
  742. Sienna = "sienna" // R:160 G:82 B:45
  743. Sienna1 = "sienna1" // R:255 G:130 B:71
  744. Sienna2 = "sienna2" // R:238 G:121 B:66
  745. Sienna3 = "sienna3" // R:205 G:104 B:57
  746. Sienna4 = "sienna4" // R:139 G:71 B:38
  747. Silver = "silver" // R:192 G:192 B:192
  748. SkyBlue = "SkyBlue" // R:135 G:206 B:235
  749. SkyBlue1 = "SkyBlue1" // R:135 G:206 B:255
  750. SkyBlue2 = "SkyBlue2" // R:126 G:192 B:238
  751. SkyBlue3 = "SkyBlue3" // R:108 G:166 B:205
  752. SkyBlue4 = "SkyBlue4" // R:74 G:112 B:139
  753. SlateBlue = "SlateBlue" // R:106 G:90 B:205
  754. SlateBlue1 = "SlateBlue1" // R:131 G:111 B:255
  755. SlateBlue2 = "SlateBlue2" // R:122 G:103 B:238
  756. SlateBlue3 = "SlateBlue3" // R:105 G:89 B:205
  757. SlateBlue4 = "SlateBlue4" // R:71 G:60 B:139
  758. SlateGray = "SlateGray" // R:112 G:128 B:144
  759. SlateGray1 = "SlateGray1" // R:198 G:226 B:255
  760. SlateGray2 = "SlateGray2" // R:185 G:211 B:238
  761. SlateGray3 = "SlateGray3" // R:159 G:182 B:205
  762. SlateGray4 = "SlateGray4" // R:108 G:123 B:139
  763. SlateGrey = "SlateGrey" // R:112 G:128 B:144
  764. Snow = "snow" // R:255 G:250 B:250
  765. Snow1 = "snow1" // R:255 G:250 B:250
  766. Snow2 = "snow2" // R:238 G:233 B:233
  767. Snow3 = "snow3" // R:205 G:201 B:201
  768. Snow4 = "snow4" // R:139 G:137 B:137
  769. SpringGreen = "SpringGreen" // R:0 G:255 B:127
  770. SpringGreen1 = "SpringGreen1" // R:0 G:255 B:127
  771. SpringGreen2 = "SpringGreen2" // R:0 G:238 B:118
  772. SpringGreen3 = "SpringGreen3" // R:0 G:205 B:102
  773. SpringGreen4 = "SpringGreen4" // R:0 G:139 B:69
  774. SteelBlue = "SteelBlue" // R:70 G:130 B:180
  775. SteelBlue1 = "SteelBlue1" // R:99 G:184 B:255
  776. SteelBlue2 = "SteelBlue2" // R:92 G:172 B:238
  777. SteelBlue3 = "SteelBlue3" // R:79 G:148 B:205
  778. SteelBlue4 = "SteelBlue4" // R:54 G:100 B:139
  779. Tan = "tan" // R:210 G:180 B:140
  780. Tan1 = "tan1" // R:255 G:165 B:79
  781. Tan2 = "tan2" // R:238 G:154 B:73
  782. Tan3 = "tan3" // R:205 G:133 B:63
  783. Tan4 = "tan4" // R:139 G:90 B:43
  784. Teal = "teal" // R:0 G:128 B:128
  785. Thistle = "thistle" // R:216 G:191 B:216
  786. Thistle1 = "thistle1" // R:255 G:225 B:255
  787. Thistle2 = "thistle2" // R:238 G:210 B:238
  788. Thistle3 = "thistle3" // R:205 G:181 B:205
  789. Thistle4 = "thistle4" // R:139 G:123 B:139
  790. Tomato = "tomato" // R:255 G:99 B:71
  791. Tomato1 = "tomato1" // R:255 G:99 B:71
  792. Tomato2 = "tomato2" // R:238 G:92 B:66
  793. Tomato3 = "tomato3" // R:205 G:79 B:57
  794. Tomato4 = "tomato4" // R:139 G:54 B:38
  795. Turquoise = "turquoise" // R:64 G:224 B:208
  796. Turquoise1 = "turquoise1" // R:0 G:245 B:255
  797. Turquoise2 = "turquoise2" // R:0 G:229 B:238
  798. Turquoise3 = "turquoise3" // R:0 G:197 B:205
  799. Turquoise4 = "turquoise4" // R:0 G:134 B:139
  800. Violet = "violet" // R:238 G:130 B:238
  801. VioletRed = "VioletRed" // R:208 G:32 B:144
  802. VioletRed1 = "VioletRed1" // R:255 G:62 B:150
  803. VioletRed2 = "VioletRed2" // R:238 G:58 B:140
  804. VioletRed3 = "VioletRed3" // R:205 G:50 B:120
  805. VioletRed4 = "VioletRed4" // R:139 G:34 B:82
  806. Wheat = "wheat" // R:245 G:222 B:179
  807. Wheat1 = "wheat1" // R:255 G:231 B:186
  808. Wheat2 = "wheat2" // R:238 G:216 B:174
  809. Wheat3 = "wheat3" // R:205 G:186 B:150
  810. Wheat4 = "wheat4" // R:139 G:126 B:102
  811. White = "white" // R:255 G:255 B:255
  812. WhiteSmoke = "WhiteSmoke" // R:245 G:245 B:245
  813. Yellow = "yellow" // R:255 G:255 B:0
  814. Yellow1 = "yellow1" // R:255 G:255 B:0
  815. Yellow2 = "yellow2" // R:238 G:238 B:0
  816. Yellow3 = "yellow3" // R:205 G:205 B:0
  817. Yellow4 = "yellow4" // R:139 G:139 B:0
  818. YellowGreen = "YellowGreen" // R:154 G:205 B:50
  819. )
  820. // Additional system colors available on macOS.
  821. const (
  822. SystemActiveAreaFill = "systemActiveAreaFill"
  823. SystemAlertBackgroundActive = "systemAlertBackgroundActive"
  824. SystemAlertBackgroundInactive = "systemAlertBackgroundInactive"
  825. SystemAlternatePrimaryHighlightColor = "systemAlternatePrimaryHighlightColor"
  826. SystemAppleGuideCoachmark = "systemAppleGuideCoachmark"
  827. SystemBevelActiveDark = "systemBevelActiveDark"
  828. SystemBevelActiveLight = "systemBevelActiveLight"
  829. SystemBevelInactiveDark = "systemBevelInactiveDark"
  830. SystemBevelInactiveLight = "systemBevelInactiveLight"
  831. SystemBlack = "systemBlack"
  832. SystemButtonActiveDarkHighlight = "systemButtonActiveDarkHighlight"
  833. SystemButtonActiveDarkShadow = "systemButtonActiveDarkShadow"
  834. SystemButtonActiveLightHighlight = "systemButtonActiveLightHighlight"
  835. SystemButtonActiveLightShadow = "systemButtonActiveLightShadow"
  836. SystemButtonFaceActive = "systemButtonFaceActive"
  837. SystemButtonFaceInactive = "systemButtonFaceInactive"
  838. SystemButtonFacePressed = "systemButtonFacePressed"
  839. SystemButtonFrame = "systemButtonFrame"
  840. SystemButtonFrameActive = "systemButtonFrameActive"
  841. SystemButtonFrameInactive = "systemButtonFrameInactive"
  842. SystemButtonInactiveDarkHighlight = "systemButtonInactiveDarkHighlight"
  843. SystemButtonInactiveDarkShadow = "systemButtonInactiveDarkShadow"
  844. SystemButtonInactiveLightHighlight = "systemButtonInactiveLightHighlight"
  845. SystemButtonInactiveLightShadow = "systemButtonInactiveLightShadow"
  846. SystemButtonPressedDarkHighlight = "systemButtonPressedDarkHighlight"
  847. SystemButtonPressedDarkShadow = "systemButtonPressedDarkShadow"
  848. SystemButtonPressedLightHighlight = "systemButtonPressedLightHighlight"
  849. SystemButtonPressedLightShadow = "systemButtonPressedLightShadow"
  850. SystemChasingArrows = "systemChasingArrows"
  851. SystemControlAccentColor = "systemControlAccentColor"
  852. SystemControlTextColor = "systemControlTextColor"
  853. SystemDialogBackgroundActive = "systemDialogBackgroundActive"
  854. SystemDialogBackgroundInactive = "systemDialogBackgroundInactive"
  855. SystemDisabledControlTextColor = "systemDisabledControlTextColor"
  856. SystemDocumentWindowBackground = "systemDocumentWindowBackground"
  857. SystemDragHilite = "systemDragHilite"
  858. SystemDrawerBackground = "systemDrawerBackground"
  859. SystemFinderWindowBackground = "systemFinderWindowBackground"
  860. SystemFocusHighlight = "systemFocusHighlight"
  861. SystemHighlightAlternate = "systemHighlightAlternate"
  862. SystemHighlightSecondary = "systemHighlightSecondary"
  863. SystemIconLabelBackground = "systemIconLabelBackground"
  864. SystemIconLabelBackgroundSelected = "systemIconLabelBackgroundSelected"
  865. SystemLabelColor = "systemLabelColor"
  866. SystemLinkColor = "systemLinkColor"
  867. SystemListViewBackground = "systemListViewBackground"
  868. SystemListViewColumnDivider = "systemListViewColumnDivider"
  869. SystemListViewEvenRowBackground = "systemListViewEvenRowBackground"
  870. SystemListViewOddRowBackground = "systemListViewOddRowBackground"
  871. SystemListViewSeparator = "systemListViewSeparator"
  872. SystemListViewSortColumnBackground = "systemListViewSortColumnBackground"
  873. SystemMenuActive = "systemMenuActive"
  874. SystemMenuBackground = "systemMenuBackground"
  875. SystemMenuBackgroundSelected = "systemMenuBackgroundSelected"
  876. SystemModelessDialogBackgroundActive = "systemModelessDialogBackgroundActive"
  877. SystemModelessDialogBackgroundInactive = "systemModelessDialogBackgroundInactive"
  878. SystemMovableModalBackground = "systemMovableModalBackground"
  879. SystemNotificationWindowBackground = "systemNotificationWindowBackground"
  880. SystemPlaceholderTextColor = "systemPlaceholderTextColor"
  881. SystemPopupArrowActive = "systemPopupArrowActive"
  882. SystemPopupArrowInactive = "systemPopupArrowInactive"
  883. SystemPopupArrowPressed = "systemPopupArrowPressed"
  884. SystemPrimaryHighlightColor = "systemPrimaryHighlightColor"
  885. SystemScrollBarDelimiterActive = "systemScrollBarDelimiterActive"
  886. SystemScrollBarDelimiterInactive = "systemScrollBarDelimiterInactive"
  887. SystemSecondaryHighlightColor = "systemSecondaryHighlightColor"
  888. SystemSelectedTabTextColor = "systemSelectedTabTextColor"
  889. SystemSelectedTextBackgroundColor = "systemSelectedTextBackgroundColor"
  890. SystemSelectedTextColor = "systemSelectedTextColor"
  891. SystemSeparatorColor = "systemSeparatorColor"
  892. SystemSheetBackground = "systemSheetBackground"
  893. SystemSheetBackgroundOpaque = "systemSheetBackgroundOpaque"
  894. SystemSheetBackgroundTransparent = "systemSheetBackgroundTransparent"
  895. SystemStaticAreaFill = "systemStaticAreaFill"
  896. SystemTextBackgroundColor = "systemTextBackgroundColor"
  897. SystemTextColor = "systemTextColor"
  898. SystemToolbarBackground = "systemToolbarBackground"
  899. SystemTransparent = "systemTransparent"
  900. SystemUtilityWindowBackgroundActive = "systemUtilityWindowBackgroundActive"
  901. SystemUtilityWindowBackgroundInactive = "systemUtilityWindowBackgroundInactive"
  902. SystemWhite = "systemWhite"
  903. SystemWindowBackgroundColor = "systemWindowBackgroundColor"
  904. SystemWindowBackgroundColor1 = "systemWindowBackgroundColor1"
  905. SystemWindowBackgroundColor2 = "systemWindowBackgroundColor2"
  906. SystemWindowBackgroundColor3 = "systemWindowBackgroundColor3"
  907. SystemWindowBackgroundColor4 = "systemWindowBackgroundColor4"
  908. SystemWindowBackgroundColor5 = "systemWindowBackgroundColor5"
  909. SystemWindowBackgroundColor6 = "systemWindowBackgroundColor6"
  910. SystemWindowBackgroundColor7 = "systemWindowBackgroundColor7"
  911. SystemWindowBody = "systemWindowBody"
  912. )
  913. // Additional system colors available on Windows. Note that the actual color
  914. // values depend on the currently active OS theme.
  915. const (
  916. System3dDarkShadow = "system3dDarkShadow"
  917. System3dLight = "system3dLight"
  918. SystemActiveBorder = "systemActiveBorder"
  919. SystemActiveCaption = "systemActiveCaption"
  920. SystemAppWorkspace = "systemAppWorkspace"
  921. SystemBackground = "systemBackground"
  922. SystemButtonHighlight = "systemButtonHighlight"
  923. SystemButtonShadow = "systemButtonShadow"
  924. SystemButtonText = "systemButtonText"
  925. SystemCaptionText = "systemCaptionText"
  926. SystemDisabledText = "systemDisabledText"
  927. SystemGrayText = "systemGrayText"
  928. SystemHighlightText = "systemHighlightText"
  929. SystemInactiveBorder = "systemInactiveBorder"
  930. SystemInactiveCaption = "systemInactiveCaption"
  931. SystemInactiveCaptionText = "systemInactiveCaptionText"
  932. SystemInfoBackground = "systemInfoBackground"
  933. SystemInfoText = "systemInfoText"
  934. SystemMenuText = "systemMenuText"
  935. SystemScrollbar = "systemScrollbar"
  936. SystemWindow = "systemWindow"
  937. SystemWindowFrame = "systemWindowFrame"
  938. SystemWindowText = "systemWindowText"
  939. )
  940. // Additional system colors available both on macOS and Windows.
  941. const (
  942. SystemButtonFace = "systemButtonFace"
  943. SystemHighlight = "systemHighlight"
  944. SystemMenu = "systemMenu"
  945. )
  946. // Default generic font names
  947. const (
  948. DefaultFont = "TkDefaultFont" // Default for items not otherwise specified.
  949. TextFont = "TkTextFont" // Used for entry widgets, listboxes, etc.
  950. FixedFont = "TkFixedFont" // A standard fixed-width font.
  951. MenuFont = "TkMenuFont" // The font used for menu items.
  952. HeadingFont = "TkHeadingFont" // Font for column headings in lists and tables.
  953. CaptionFont = "TkCaptionFont" // A font for window and dialog caption bars.
  954. SmallCaptionFont = "TkSmallCaptionFont" // A smaller caption font for tool dialogs.
  955. IconFont = "TkIconFont" // A font for icon captions.
  956. TooltipFont = "TkTooltipFont" // A font for tooltips.
  957. )
  958. // Common Tk-specific words.
  959. //
  960. // Although Go's style guide recommends MixedCase, these are all in ALL_CAPS
  961. // to avoid namespace collisions. For the pack fill options a prefix is used
  962. // to avoid colliding with the X() and Y() option functions.
  963. //
  964. // See https://gitlab.com/cznic/tk9.0/-/issues/25
  965. const (
  966. // Font attributes
  967. NORMAL = "normal"
  968. BOLD = "bold"
  969. ITALIC = "italic"
  970. ROMAN = "roman"
  971. UNDERLINE = "underline"
  972. OVERSTRIKE = "overstrike"
  973. // Common font names (for Courier use the CourierFont() function)
  974. HELVETICA = "helvetica"
  975. TIMES = "times"
  976. // Text justify attributes (also used in other contexts)
  977. CENTER = "center" // also used as an anchor
  978. LEFT = "left" // also used as a pack side option
  979. RIGHT = "right" // also used as a pack side option
  980. // Text wrapping
  981. NONE = "none" // Also used as a Treeview select mode
  982. CHAR = "char"
  983. WORD = "word"
  984. // Text end position
  985. END = "end"
  986. // MessageBox icon names
  987. INFO = "info"
  988. QUESTION = "question"
  989. WARNING = "warning"
  990. ERROR = "error"
  991. // Anchor and sticky options (CENTER is also an anchor option)
  992. N = "n"
  993. S = "s"
  994. W = "w"
  995. E = "e"
  996. NEWS = "nswe"
  997. WE = "we"
  998. NS = "ns"
  999. // Pack fill options
  1000. FILL_X = "x"
  1001. FILL_Y = "y"
  1002. FILL_BOTH = "both"
  1003. // Pack side options (can also use LEFT and RIGHT)
  1004. TOP = "top"
  1005. BOTTOM = "bottom"
  1006. // Orientation (e.g., for TPanedWindow)
  1007. VERTICAL = "vertical"
  1008. HORIZONTAL = "horizontal"
  1009. // Select mode
  1010. EXTENDED = "extended"
  1011. BROWSE = "browse"
  1012. // Select type
  1013. CELL = "cell"
  1014. ITEM = "item"
  1015. // Relief
  1016. FLAT = "flat"
  1017. GROOVE = "groove"
  1018. RAISED = "raised"
  1019. RIDGE = "ridge"
  1020. SOLID = "solid"
  1021. SUNKEN = "sunken"
  1022. // Window Manager protocols
  1023. WM_TAKE_FOCUS = "WM_TAKE_FOCUS"
  1024. WM_DELETE_WINDOW = "WM_DELETE_WINDOW"
  1025. )
  1026. // Modifier is a bit field representing 0 or more modifiers.
  1027. type Modifier int
  1028. func (mods Modifier) String() string {
  1029. var names []string
  1030. for _, mod := range modifierNames {
  1031. if mods&mod.modifier == mod.modifier {
  1032. names = append(names, mod.name)
  1033. }
  1034. }
  1035. return strings.Join(names, "+")
  1036. }
  1037. const (
  1038. ModifierNone Modifier = 0
  1039. ModifierShift Modifier = 1 << (iota - 1)
  1040. ModifierLock
  1041. ModifierControl
  1042. ModifierMod1
  1043. ModifierMod2
  1044. ModifierMod3
  1045. ModifierMod4
  1046. ModifierMod5
  1047. ModifierButton1
  1048. ModifierButton2
  1049. ModifierButton3
  1050. ModifierButton4
  1051. ModifierButton5
  1052. ModifierAlt = ModifierMod1
  1053. ModifierNumlock = ModifierMod2
  1054. ModifierWindows = ModifierMod4
  1055. ModifierSuper = ModifierMod4
  1056. )
  1057. var modifierNames = []struct {
  1058. modifier Modifier
  1059. name string
  1060. }{
  1061. {ModifierShift, "Shift"},
  1062. {ModifierLock, "Lock"},
  1063. {ModifierControl, "Control"},
  1064. {ModifierMod1, "Mod1"},
  1065. {ModifierMod2, "Mod2"},
  1066. {ModifierMod3, "Mod3"},
  1067. {ModifierMod4, "Mod4"},
  1068. {ModifierMod5, "Mod5"},
  1069. {ModifierButton1, "Button1"},
  1070. {ModifierButton2, "Button2"},
  1071. {ModifierButton3, "Button3"},
  1072. {ModifierButton4, "Button4"},
  1073. {ModifierButton5, "Button5"},
  1074. }