diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 16:32:38 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 16:32:38 +0400 |
| commit | 753a90430abbdf166a86b95c5c69aa1e68b3c412 (patch) | |
| tree | 78491ad15f528bb30b8a7755b6d7a45f1ad17270 /src/layout/tile.rs | |
| parent | f9085db5648bc6bad7fb0abf45e2a11f2e03d1af (diff) | |
| download | niri-753a90430abbdf166a86b95c5c69aa1e68b3c412.tar.gz niri-753a90430abbdf166a86b95c5c69aa1e68b3c412.tar.bz2 niri-753a90430abbdf166a86b95c5c69aa1e68b3c412.zip | |
animation: Accept ms as u32
Less boilerplate elsewhere.
Diffstat (limited to 'src/layout/tile.rs')
| -rw-r--r-- | src/layout/tile.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs index dfda6fbb..be96f6e6 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -114,8 +114,7 @@ impl<W: LayoutElement> Tile<W> { } pub fn start_open_animation(&mut self) { - self.open_animation = - Some(Animation::new(0., 1., Duration::from_millis(150)).with_curve(Curve::EaseOutExpo)); + self.open_animation = Some(Animation::new(0., 1., 150).with_curve(Curve::EaseOutExpo)); } pub fn window(&self) -> &W { |
