mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
animation: Accept ms as u32
Less boilerplate elsewhere.
This commit is contained in:
+1
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user