mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
* Removed char->Key cast. Added Key(char) * Re-added char->key cast. Added unit tests * Fixed standard keys to always return new instead of being readonly * Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up * Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up * Adds string constructor to Key + tests. * Simplified Key json * Added string/Key cast operators.
407 lines
11 KiB
JSON
407 lines
11 KiB
JSON
{
|
|
// Specifies the "source of truth" for default values for all Terminal.Gui settings managed by
|
|
// ConfigurationManager. It is automatically loaded, and applied, each time Application.Init
|
|
// is run (via the ConfiguraitonManager.Reset method).
|
|
//
|
|
// In otherwords, initial values set in the the codebase are always overwritten by the contents of this
|
|
// resource embedded in the Terminal.Gui.dll assembly.
|
|
//
|
|
// The Unit Test method "ConfigurationManagerTests.SaveDefaults" can be used to re-create the base of this file, but
|
|
// note that not all values here will be recreated (e.g. the Light and Dark themes and any property initialized
|
|
// null).
|
|
//
|
|
"$schema": "https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json",
|
|
|
|
// Set this to true in a .config file to be loaded to cause JSON parsing errors
|
|
// to throw exceptions.
|
|
"ConfigurationManager.ThrowOnJsonErrors": false,
|
|
|
|
"Application.AlternateBackwardKey": "Ctrl+PageUp",
|
|
"Application.AlternateForwardKey": "Ctrl+PageDown",
|
|
"Application.QuitKey": "Ctrl+Q",
|
|
"Application.IsMouseDisabled": false,
|
|
"Theme": "Default",
|
|
"Themes": [
|
|
{
|
|
"Default": {
|
|
"Dialog.DefaultButtonAlignment": "Center",
|
|
"FrameView.DefaultBorderStyle": "Single",
|
|
"Window.DefaultBorderStyle": "Single",
|
|
"ColorSchemes": [
|
|
{
|
|
"TopLevel": {
|
|
"Normal": {
|
|
"Foreground": "BrightGreen",
|
|
"Background": "Black"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "White",
|
|
"Background": "Cyan"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Yellow",
|
|
"Background": "Black"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Blue",
|
|
"Background": "Cyan"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "Black"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Base": {
|
|
"Normal": {
|
|
"Foreground": "White",
|
|
"Background": "Blue"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightCyan",
|
|
"Background": "Blue"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "BrightBlue",
|
|
"Background": "Gray"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "Blue"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Dialog": {
|
|
"Normal": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "White",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Blue",
|
|
"Background": "Gray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Gray",
|
|
"Background": "DarkGray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Menu": {
|
|
"Normal": {
|
|
"Foreground": "White",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "White",
|
|
"Background": "Black"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "Black"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Gray",
|
|
"Background": "DarkGray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Error": {
|
|
"Normal": {
|
|
"Foreground": "Red",
|
|
"Background": "White"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "Black",
|
|
"Background": "BrightRed"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Black",
|
|
"Background": "White"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "White",
|
|
"Background": "BrightRed"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "White"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"Dark": {
|
|
"ColorSchemes": [
|
|
{
|
|
"TopLevel": {
|
|
"Normal": {
|
|
"Foreground": "Gray",
|
|
"Background": "Black"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "White",
|
|
"Background": "BrightGreen"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightGreen",
|
|
"Background": "Black"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Cyan",
|
|
"Background": "Black"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Base": {
|
|
"Normal": {
|
|
"Foreground": "Gray",
|
|
"Background": "Black"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "Black"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Cyan",
|
|
"Background": "Black"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Dialog": {
|
|
"Normal": {
|
|
"Foreground": "Gray",
|
|
"Background": "Black"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "BrightCyan",
|
|
"Background": "Black"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "White",
|
|
"Background": "Black"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "White",
|
|
"Background": "Black"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Menu": {
|
|
"Normal": {
|
|
"Foreground": "White",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "White",
|
|
"Background": "Black"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Gray",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "White",
|
|
"Background": "Black"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Gray",
|
|
"Background": "Black"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Error": {
|
|
"Normal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "BrightYellow"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Red",
|
|
"Background": "BrightYellow"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"Light": {
|
|
"ColorSchemes": [
|
|
{
|
|
"TopLevel": {
|
|
"Normal": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "White"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "Black",
|
|
"Background": "White"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightGreen",
|
|
"Background": "White"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Cyan",
|
|
"Background": "White"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Gray",
|
|
"Background": "White"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Base": {
|
|
"Normal": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "White"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "BrightRed",
|
|
"Background": "Gray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Red",
|
|
"Background": "White"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Cyan",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Dialog": {
|
|
"Normal": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "Blue",
|
|
"Background": "Gray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "BrightBlue",
|
|
"Background": "Gray"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Black",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Menu": {
|
|
"Normal": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "White"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "Gray"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightRed",
|
|
"Background": "White"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "BrightRed",
|
|
"Background": "Gray"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "Gray",
|
|
"Background": "White"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Error": {
|
|
"Normal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"Focus": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "BrightYellow"
|
|
},
|
|
"HotNormal": {
|
|
"Foreground": "BrightYellow",
|
|
"Background": "DarkGray"
|
|
},
|
|
"HotFocus": {
|
|
"Foreground": "Red",
|
|
"Background": "BrightYellow"
|
|
},
|
|
"Disabled": {
|
|
"Foreground": "DarkGray",
|
|
"Background": "Gray"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |