config.json 12 KB

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