From 753a90430abbdf166a86b95c5c69aa1e68b3c412 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 7 Feb 2024 16:32:38 +0400 Subject: animation: Accept ms as u32 Less boilerplate elsewhere. --- src/layout/tile.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/layout/tile.rs') 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 Tile { } 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 { -- cgit