Document animation TOML settings
This commit is contained in:
parent
501c508839
commit
2115518edf
3 changed files with 238 additions and 1 deletions
|
|
@ -641,6 +641,49 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"AnimationCurve": {
|
||||
"description": "Describes a window animation curve.\n",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "One of the supported curve presets.\n",
|
||||
"enum": [
|
||||
"linear",
|
||||
"ease",
|
||||
"ease-in",
|
||||
"ease-out",
|
||||
"ease-in-out"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "A custom CSS-style cubic-bezier curve as four numbers:\n`x1`, `y1`, `x2`, and `y2`.\n\nThe implicit endpoints are `(0, 0)` and `(1, 1)`. `x1` and `x2` must\nbe between `0` and `1`.\n",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Animations": {
|
||||
"description": "Describes window animation settings.\n\n- Example:\n\n ```toml\n [animations]\n enabled = true\n duration-ms = 160\n curve = [0.25, 0.1, 0.25, 1.0]\n ```\n",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enables or disables window animations.\n\nThe default is `false`.\n"
|
||||
},
|
||||
"duration-ms": {
|
||||
"type": "integer",
|
||||
"description": "Sets the animation duration in milliseconds.\n\nThe default is `160`.\n"
|
||||
},
|
||||
"curve": {
|
||||
"description": "Sets the animation curve.\n\nThe default is `ease-out`.\n",
|
||||
"$ref": "#/$defs/AnimationCurve"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
},
|
||||
"BarPosition": {
|
||||
"type": "string",
|
||||
"description": "The position of the bar.",
|
||||
|
|
@ -1085,6 +1128,10 @@
|
|||
"description": "Configures the ui-drag settings.\n\n- Example:\n\n ```toml\n ui-drag = { enabled = false, threshold = 20 }\n ```\n",
|
||||
"$ref": "#/$defs/UiDrag"
|
||||
},
|
||||
"animations": {
|
||||
"description": "Configures window animations.\n\nAnimations are disabled by default.\n\n- Example:\n\n ```toml\n [animations]\n enabled = true\n duration-ms = 160\n curve = \"ease-out\"\n ```\n",
|
||||
"$ref": "#/$defs/Animations"
|
||||
},
|
||||
"xwayland": {
|
||||
"description": "Configures the Xwayland settings.\n\n- Example:\n\n ```toml\n xwayland = { scaling-mode = \"downscaled\" }\n ```\n",
|
||||
"$ref": "#/$defs/Xwayland"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue