From d523b320318087861cbf585324645d1708c1f356 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Tue, 10 Jan 2023 17:33:29 -0600 Subject: [PATCH] this is the refs, I think that's it? --- doc/cascadia/profiles.schema.json | 65 ++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/doc/cascadia/profiles.schema.json b/doc/cascadia/profiles.schema.json index 0c0c38dbd6..71bdf84755 100644 --- a/doc/cascadia/profiles.schema.json +++ b/doc/cascadia/profiles.schema.json @@ -1546,18 +1546,79 @@ } ] }, + "ShowCloseButton": { + "enum": [ + "always", + "hover", + "never" + ], + "type": "string" + }, + "ThemeColor": { + "description": "A special kind of color for use in themes. Can be an #rrggbb color, #rrggbbaa color, or a special value. 'accent' is evaluated as the user's selected Accent color in the OS, and 'terminalBackground' will be evaluated as the background color of the active terminal pane.", + "oneOf": [ + { + "pattern": "^#[A-Fa-f0-9]{3}(?:[A-Fa-f0-9]{3}(?:[A-Fa-f0-9]{2})?)?$", + "type": "string", + "format": "color" + }, + { + "const": "accent", + "type": "string" + }, + { + "const": "terminalBackground", + "type": "string" + }, + { + "type": "null" + } + ] + }, "TabTheme": { + "additionalProperties": false, + "description": "A set of properties for customizing the appearance of the tabs", + "properties": { + "background": { + "description": "The color of a tab when it is the active tab", + "$ref": "#/$defs/ThemeColor" + }, + "unfocusedBackground": { + "description": "The color of a tab when it is not the active tab", + "$ref": "#/$defs/ThemeColor" + }, + "showCloseButton": { + "description": "Controls the visibility of the close button on the tab", + "$ref": "#/$defs/ShowCloseButton" + } + } + }, + "TabRowTheme": { "additionalProperties": false, "description": "A set of properties for customizing the appearance of the tab row", "properties": { "background": { + "description": "The color of the tab row when the window is the foreground window.", "$ref": "#/$defs/ThemeColor" }, "unfocusedBackground": { + "description": "The color of the tab row when the window is inactive", "$ref": "#/$defs/ThemeColor" + } + } + }, + "WindowTheme": { + "additionalProperties": false, + "description": "A set of properties for customizing the appearance of the window itself", + "properties": { + "applicationTheme": { + "description": "Which UI theme the Terminal should use for controls", + "oneOf": [ "light", "dark", "system" ] }, - "showCloseButton": { - "$ref": "#/$defs/ShowCloseButton" + "useMica": { + "description": "True if the Terminal should use a Mica backdrop for the window. This will apply underneath all controls (including the terminal panes and the titlebar)", + "type": "boolean", + "default": false } } },