mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
docs(schema): avoid duplicating display format enums in bar
This commit also addresses some clippy warnings.
This commit is contained in:
1 parent
1e71cb7d92
commit
f6bfae3103
3 files changed
+40
-40
No files matched your search
+26
-26
@@ -173,7 +173,7 @@
|
||||
"description": "Display format for this application button (optional). Overrides global format if set.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
"$ref": "#/$defs/ApplicationsDisplayFormat"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -218,7 +218,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"
|
||||
@@ -257,6 +257,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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Base16": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -888,25 +907,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",
|
||||
@@ -1408,7 +1408,7 @@
|
||||
"description": "Display format of the currently focused container",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat2"
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -1457,7 +1457,7 @@
|
||||
"description": "Display format of the current layout",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat2"
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -1490,7 +1490,7 @@
|
||||
"description": "Display format of the current locked state",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat2"
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -1520,7 +1520,7 @@
|
||||
"description": "Display format of the current layer",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat2"
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -2249,7 +2249,7 @@
|
||||
"const": "AllIconsAndTextOnSelected"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/DisplayFormat2"
|
||||
"$ref": "#/$defs/DisplayFormat"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user