docs(schema): avoid duplicating display format enums in bar

This commit is contained in:
LGUG2Z
2025-12-22 19:30:29 -08:00
parent 4b1e3bd448
commit c91224295f
3 changed files with 43 additions and 43 deletions

View File

@@ -262,7 +262,7 @@
"description": "Display format for this application button (optional). Overrides global format if set.",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat"
"$ref": "#/$defs/ApplicationsDisplayFormat"
},
{
"type": "null"
@@ -316,7 +316,7 @@
"description": "Default display format for all applications (optional).\nCould be overridden per application. Defaults to `Icon`.",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat"
"$ref": "#/$defs/ApplicationsDisplayFormat"
},
{
"type": "null"
@@ -355,6 +355,25 @@
"items"
]
},
"ApplicationsDisplayFormat": {
"oneOf": [
{
"description": "Show only the application icon.",
"type": "string",
"const": "Icon"
},
{
"description": "Show only the application name as text.",
"type": "string",
"const": "Text"
},
{
"description": "Show both the application icon and name.",
"type": "string",
"const": "IconAndText"
}
]
},
"Axis": {
"type": "string",
"enum": [
@@ -1034,25 +1053,6 @@
]
},
"DisplayFormat": {
"oneOf": [
{
"description": "Show only the application icon.",
"type": "string",
"const": "Icon"
},
{
"description": "Show only the application name as text.",
"type": "string",
"const": "Text"
},
{
"description": "Show both the application icon and name.",
"type": "string",
"const": "IconAndText"
}
]
},
"DisplayFormat2": {
"oneOf": [
{
"description": "Show only icon",
@@ -1298,13 +1298,13 @@
"HidingBehaviour": {
"oneOf": [
{
"description": "END OF LIFE FEATURE: Use the SW_HIDE flag to hide windows when switching workspaces (has issues with Electron apps)",
"description": "END OF LIFE FEATURE: Use the `SW_HIDE` flag to hide windows when switching workspaces (has issues with Electron apps)",
"type": "string",
"const": "Hide",
"deprecated": true
},
{
"description": "Use the SW_MINIMIZE flag to hide windows when switching workspaces (has issues with frequent workspace switching)",
"description": "Use the `SW_MINIMIZE` flag to hide windows when switching workspaces (has issues with frequent workspace switching)",
"type": "string",
"const": "Minimize"
},
@@ -1620,7 +1620,7 @@
"description": "Display format of the currently focused container",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat2"
"$ref": "#/$defs/DisplayFormat"
},
{
"type": "null"
@@ -1670,7 +1670,7 @@
"description": "Display format of the current layout",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat2"
"$ref": "#/$defs/DisplayFormat"
},
{
"type": "null"
@@ -1703,7 +1703,7 @@
"description": "Display format of the current locked state",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat2"
"$ref": "#/$defs/DisplayFormat"
},
{
"type": "null"
@@ -2147,7 +2147,7 @@
"description": "Display format of the current layer",
"anyOf": [
{
"$ref": "#/$defs/DisplayFormat2"
"$ref": "#/$defs/DisplayFormat"
},
{
"type": "null"
@@ -6661,7 +6661,7 @@
"const": "AllIconsAndTextOnSelected"
},
{
"$ref": "#/$defs/DisplayFormat2"
"$ref": "#/$defs/DisplayFormat"
}
]
}