config.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. {
  2. // Specifies the "source of truth" for default values for all Terminal.Gui settings managed by
  3. // ConfigurationManager. It is automatically loaded, and applied, each time Application.Init
  4. // is run (via the ConfiguraitonManager.Reset method).
  5. //
  6. // In other words, initial values set in the the codebase are always overwritten by the contents of this
  7. // resource embedded in the Terminal.Gui.dll assembly.
  8. //
  9. // The Unit Test method "ConfigurationManagerTests.SaveDefaults" can be used to re-create the base of this file, but
  10. // note that not all values here will be recreated (e.g. the Light and Dark themes and any property initialized
  11. // null).
  12. //
  13. // TODO: V2 - Reference via http
  14. "$schema": "../../docfx/schemas/tui-config-schema.json",
  15. // Set this to true in a .config file to be loaded to cause JSON parsing errors
  16. // to throw exceptions.
  17. "ConfigurationManager.ThrowOnJsonErrors": false,
  18. "Application.AlternateBackwardKey": "Ctrl+PageUp",
  19. "Application.AlternateForwardKey": "Ctrl+PageDown",
  20. "Application.QuitKey": "Esc",
  21. "Theme": "Default",
  22. "Themes": [
  23. {
  24. "Default": {
  25. "Dialog.DefaultButtonAlignment": "End",
  26. "Dialog.DefaultButtonAlignmentModes": "AddSpaceBetweenItems",
  27. "FrameView.DefaultBorderStyle": "Single",
  28. "Window.DefaultBorderStyle": "Single",
  29. "Dialog.DefaultBorderStyle": "Single",
  30. "MessageBox.DefaultBorderStyle": "Double",
  31. "Button.DefaultShadow": "None",
  32. "ColorSchemes": [
  33. {
  34. "TopLevel": {
  35. "Normal": {
  36. "Foreground": "BrightGreen",
  37. "Background": "Black"
  38. },
  39. "Focus": {
  40. "Foreground": "White",
  41. "Background": "Cyan"
  42. },
  43. "HotNormal": {
  44. "Foreground": "Yellow",
  45. "Background": "Black"
  46. },
  47. "HotFocus": {
  48. "Foreground": "Blue",
  49. "Background": "Cyan"
  50. },
  51. "Disabled": {
  52. "Foreground": "DarkGray",
  53. "Background": "Black"
  54. }
  55. }
  56. },
  57. {
  58. "Base": {
  59. "Normal": {
  60. "Foreground": "White",
  61. "Background": "Blue"
  62. },
  63. "Focus": {
  64. "Foreground": "Black",
  65. "Background": "Gray"
  66. },
  67. "HotNormal": {
  68. "Foreground": "BrightCyan",
  69. "Background": "Blue"
  70. },
  71. "HotFocus": {
  72. "Foreground": "BrightBlue",
  73. "Background": "Gray"
  74. },
  75. "Disabled": {
  76. "Foreground": "DarkGray",
  77. "Background": "Blue"
  78. }
  79. }
  80. },
  81. {
  82. "Dialog": {
  83. "Normal": {
  84. "Foreground": "Black",
  85. "Background": "Gray"
  86. },
  87. "Focus": {
  88. "Foreground": "White",
  89. "Background": "DarkGray"
  90. },
  91. "HotNormal": {
  92. "Foreground": "Blue",
  93. "Background": "Gray"
  94. },
  95. "HotFocus": {
  96. "Foreground": "BrightYellow",
  97. "Background": "DarkGray"
  98. },
  99. "Disabled": {
  100. "Foreground": "Gray",
  101. "Background": "DarkGray"
  102. }
  103. }
  104. },
  105. {
  106. "Menu": {
  107. "Normal": {
  108. "Foreground": "White",
  109. "Background": "DarkGray"
  110. },
  111. "Focus": {
  112. "Foreground": "White",
  113. "Background": "Black"
  114. },
  115. "HotNormal": {
  116. "Foreground": "BrightYellow",
  117. "Background": "DarkGray"
  118. },
  119. "HotFocus": {
  120. "Foreground": "BrightYellow",
  121. "Background": "Black"
  122. },
  123. "Disabled": {
  124. "Foreground": "Gray",
  125. "Background": "DarkGray"
  126. }
  127. }
  128. },
  129. {
  130. "Error": {
  131. "Normal": {
  132. "Foreground": "Red",
  133. "Background": "White"
  134. },
  135. "Focus": {
  136. "Foreground": "Black",
  137. "Background": "BrightRed"
  138. },
  139. "HotNormal": {
  140. "Foreground": "Black",
  141. "Background": "White"
  142. },
  143. "HotFocus": {
  144. "Foreground": "White",
  145. "Background": "BrightRed"
  146. },
  147. "Disabled": {
  148. "Foreground": "DarkGray",
  149. "Background": "White"
  150. }
  151. }
  152. }
  153. ]
  154. }
  155. },
  156. {
  157. "Dark": {
  158. "ColorSchemes": [
  159. {
  160. "TopLevel": {
  161. "Normal": {
  162. "Foreground": "Gray",
  163. "Background": "Black"
  164. },
  165. "Focus": {
  166. "Foreground": "White",
  167. "Background": "BrightGreen"
  168. },
  169. "HotNormal": {
  170. "Foreground": "BrightGreen",
  171. "Background": "Black"
  172. },
  173. "HotFocus": {
  174. "Foreground": "Cyan",
  175. "Background": "Black"
  176. },
  177. "Disabled": {
  178. "Foreground": "Black",
  179. "Background": "Gray"
  180. }
  181. }
  182. },
  183. {
  184. "Base": {
  185. "Normal": {
  186. "Foreground": "Gray",
  187. "Background": "Black"
  188. },
  189. "Focus": {
  190. "Foreground": "BrightYellow",
  191. "Background": "DarkGray"
  192. },
  193. "HotNormal": {
  194. "Foreground": "BrightYellow",
  195. "Background": "Black"
  196. },
  197. "HotFocus": {
  198. "Foreground": "Cyan",
  199. "Background": "Black"
  200. },
  201. "Disabled": {
  202. "Foreground": "Black",
  203. "Background": "Gray"
  204. }
  205. }
  206. },
  207. {
  208. "Dialog": {
  209. "Normal": {
  210. "Foreground": "Gray",
  211. "Background": "Black"
  212. },
  213. "Focus": {
  214. "Foreground": "BrightCyan",
  215. "Background": "Black"
  216. },
  217. "HotNormal": {
  218. "Foreground": "White",
  219. "Background": "Black"
  220. },
  221. "HotFocus": {
  222. "Foreground": "White",
  223. "Background": "Black"
  224. },
  225. "Disabled": {
  226. "Foreground": "Black",
  227. "Background": "Gray"
  228. }
  229. }
  230. },
  231. {
  232. "Menu": {
  233. "Normal": {
  234. "Foreground": "White",
  235. "Background": "DarkGray"
  236. },
  237. "Focus": {
  238. "Foreground": "White",
  239. "Background": "Black"
  240. },
  241. "HotNormal": {
  242. "Foreground": "Gray",
  243. "Background": "DarkGray"
  244. },
  245. "HotFocus": {
  246. "Foreground": "White",
  247. "Background": "Black"
  248. },
  249. "Disabled": {
  250. "Foreground": "Gray",
  251. "Background": "Black"
  252. }
  253. }
  254. },
  255. {
  256. "Error": {
  257. "Normal": {
  258. "Foreground": "BrightYellow",
  259. "Background": "DarkGray"
  260. },
  261. "Focus": {
  262. "Foreground": "DarkGray",
  263. "Background": "BrightYellow"
  264. },
  265. "HotNormal": {
  266. "Foreground": "BrightYellow",
  267. "Background": "DarkGray"
  268. },
  269. "HotFocus": {
  270. "Foreground": "Red",
  271. "Background": "BrightYellow"
  272. },
  273. "Disabled": {
  274. "Foreground": "DarkGray",
  275. "Background": "Gray"
  276. }
  277. }
  278. }
  279. ]
  280. }
  281. },
  282. {
  283. "Light": {
  284. "ColorSchemes": [
  285. {
  286. "TopLevel": {
  287. "Normal": {
  288. "Foreground": "DarkGray",
  289. "Background": "White"
  290. },
  291. "Focus": {
  292. "Foreground": "Black",
  293. "Background": "White"
  294. },
  295. "HotNormal": {
  296. "Foreground": "BrightGreen",
  297. "Background": "White"
  298. },
  299. "HotFocus": {
  300. "Foreground": "Cyan",
  301. "Background": "White"
  302. },
  303. "Disabled": {
  304. "Foreground": "Gray",
  305. "Background": "White"
  306. }
  307. }
  308. },
  309. {
  310. "Base": {
  311. "Normal": {
  312. "Foreground": "DarkGray",
  313. "Background": "White"
  314. },
  315. "Focus": {
  316. "Foreground": "BrightRed",
  317. "Background": "Gray"
  318. },
  319. "HotNormal": {
  320. "Foreground": "Red",
  321. "Background": "White"
  322. },
  323. "HotFocus": {
  324. "Foreground": "Cyan",
  325. "Background": "DarkGray"
  326. },
  327. "Disabled": {
  328. "Foreground": "Black",
  329. "Background": "Gray"
  330. }
  331. }
  332. },
  333. {
  334. "Dialog": {
  335. "Normal": {
  336. "Foreground": "Black",
  337. "Background": "Gray"
  338. },
  339. "Focus": {
  340. "Foreground": "Blue",
  341. "Background": "Gray"
  342. },
  343. "HotNormal": {
  344. "Foreground": "Black",
  345. "Background": "Gray"
  346. },
  347. "HotFocus": {
  348. "Foreground": "BrightBlue",
  349. "Background": "Gray"
  350. },
  351. "Disabled": {
  352. "Foreground": "Black",
  353. "Background": "Gray"
  354. }
  355. }
  356. },
  357. {
  358. "Menu": {
  359. "Normal": {
  360. "Foreground": "DarkGray",
  361. "Background": "White"
  362. },
  363. "Focus": {
  364. "Foreground": "DarkGray",
  365. "Background": "Gray"
  366. },
  367. "HotNormal": {
  368. "Foreground": "BrightRed",
  369. "Background": "White"
  370. },
  371. "HotFocus": {
  372. "Foreground": "BrightRed",
  373. "Background": "Gray"
  374. },
  375. "Disabled": {
  376. "Foreground": "Gray",
  377. "Background": "White"
  378. }
  379. }
  380. },
  381. {
  382. "Error": {
  383. "Normal": {
  384. "Foreground": "BrightYellow",
  385. "Background": "DarkGray"
  386. },
  387. "Focus": {
  388. "Foreground": "DarkGray",
  389. "Background": "BrightYellow"
  390. },
  391. "HotNormal": {
  392. "Foreground": "BrightYellow",
  393. "Background": "DarkGray"
  394. },
  395. "HotFocus": {
  396. "Foreground": "Red",
  397. "Background": "BrightYellow"
  398. },
  399. "Disabled": {
  400. "Foreground": "DarkGray",
  401. "Background": "Gray"
  402. }
  403. }
  404. }
  405. ]
  406. }
  407. }
  408. ]
  409. }