config.json 11 KB

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