config.json 12 KB

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