mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
exit_confirm_dialog: Add open/close animation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user