exit_confirm_dialog: Add open/close animation

This commit is contained in:
Ivan Molodetskikh
2025-08-22 08:50:52 +03:00
parent 9d3beb4931
commit 210d5e90fe
4 changed files with 159 additions and 21 deletions
+20
View File
@@ -46,6 +46,10 @@ animations {
spring damping-ratio=0.6 stiffness=1000 epsilon=0.001
}
exit-confirmation-open-close {
spring damping-ratio=0.6 stiffness=500 epsilon=0.01
}
screenshot-ui-open {
duration-ms 200
curve "ease-out-quad"
@@ -363,6 +367,22 @@ animations {
}
```
#### `exit-confirmation-open-close`
<sup>Since: next release</sup>
The open/close animation of the exit confirmation dialog.
This one uses an underdamped spring by default (`damping-ratio=0.6`) which causes a slight oscillation in the end.
```kdl
animations {
exit-confirmation-open-close {
spring damping-ratio=0.6 stiffness=500 epsilon=0.01
}
}
```
#### `screenshot-ui-open`
<sup>Since: 0.1.8</sup>