config.json 11 KB

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