theme: add bar-position setting
This commit is contained in:
parent
3ea687a5c8
commit
2500c05f70
15 changed files with 178 additions and 32 deletions
|
|
@ -579,6 +579,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"BarPosition": {
|
||||
"type": "string",
|
||||
"description": "The position of the bar.",
|
||||
"enum": [
|
||||
"top",
|
||||
"bottom"
|
||||
]
|
||||
},
|
||||
"BlendSpace": {
|
||||
"type": "string",
|
||||
"description": "A color blend space.\n",
|
||||
|
|
@ -2000,6 +2008,10 @@
|
|||
"description": "The height of the bar. Defaults to the title-height if not set.",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"bar-position": {
|
||||
"description": "The position of the bar. Defaults to `top` if not set.",
|
||||
"$ref": "#/$defs/BarPosition"
|
||||
},
|
||||
"font": {
|
||||
"type": "string",
|
||||
"description": "The name of the font to use."
|
||||
|
|
|
|||
|
|
@ -841,6 +841,25 @@ This table is a tagged union. The variant is determined by the `type` field. It
|
|||
The value of this field should be a string.
|
||||
|
||||
|
||||
<a name="types-BarPosition"></a>
|
||||
### `BarPosition`
|
||||
|
||||
The position of the bar.
|
||||
|
||||
Values of this type should be strings.
|
||||
|
||||
The string should have one of the following values:
|
||||
|
||||
- `top`:
|
||||
|
||||
The bar is at the top of the output.
|
||||
|
||||
- `bottom`:
|
||||
|
||||
The bar is at the bottom of the output.
|
||||
|
||||
|
||||
|
||||
<a name="types-BlendSpace"></a>
|
||||
### `BlendSpace`
|
||||
|
||||
|
|
@ -4552,6 +4571,12 @@ The table has the following fields:
|
|||
|
||||
The numbers should be greater than or equal to 0.
|
||||
|
||||
- `bar-position` (optional):
|
||||
|
||||
The position of the bar. Defaults to `top` if not set.
|
||||
|
||||
The value of this field should be a [BarPosition](#types-BarPosition).
|
||||
|
||||
- `font` (optional):
|
||||
|
||||
The name of the font to use.
|
||||
|
|
|
|||
|
|
@ -2224,6 +2224,10 @@ Theme:
|
|||
minimum: 0
|
||||
required: false
|
||||
description: The height of the bar. Defaults to the title-height if not set.
|
||||
bar-position:
|
||||
ref: BarPosition
|
||||
required: false
|
||||
description: The position of the bar. Defaults to `top` if not set.
|
||||
font:
|
||||
kind: string
|
||||
required: false
|
||||
|
|
@ -4311,3 +4315,13 @@ SimpleIm:
|
|||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
||||
|
||||
BarPosition:
|
||||
kind: string
|
||||
description: The position of the bar.
|
||||
values:
|
||||
- value: top
|
||||
description: The bar is at the top of the output.
|
||||
- value: bottom
|
||||
description: The bar is at the bottom of the output.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue