From 838886e1876e94ba2ae39540dbd4433cf8339868 Mon Sep 17 00:00:00 2001 From: c0h2r <59478667+c0h2r@users.noreply.github.com> Date: Wed, 4 Oct 2023 23:07:11 +0300 Subject: [PATCH 1/2] Make `Animations`' fields public --- src/data/regular.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/regular.rs b/src/data/regular.rs index f09c8dd..3d46890 100644 --- a/src/data/regular.rs +++ b/src/data/regular.rs @@ -580,7 +580,7 @@ struct AnimationsRaw(Vec, Vec); /// Struct that holds animations and beziers #[derive(Serialize, Deserialize, Debug, Clone)] -pub struct Animations(Vec, Vec); +pub struct Animations(pub Vec, pub Vec); #[async_trait] impl HyprData for Animations { From dbac3711cff7bf04e689aa4641847d476d63b6eb Mon Sep 17 00:00:00 2001 From: c0h2r <59478667+c0h2r@users.noreply.github.com> Date: Wed, 4 Oct 2023 23:24:04 +0300 Subject: [PATCH 2/2] Two more animation styles for workspaces Listed in https://wiki.hyprland.org/Configuring/Animations/ --- src/data/regular.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/regular.rs b/src/data/regular.rs index 3d46890..e92cf7b 100644 --- a/src/data/regular.rs +++ b/src/data/regular.rs @@ -457,6 +457,8 @@ pub enum AnimationStyle { Slide, /// Vertical slide animation SlideVert, + SlideFade, + SlideFadeVert, /// Popin animation (with percentage) PopIn(u8), /// Fade animation @@ -488,6 +490,8 @@ impl From for AnimationStyle { "slide" => AnimationStyle::Slide, "slidevert" => AnimationStyle::SlideVert, "fade" => AnimationStyle::Fade, + "slidefade" => AnimationStyle::SlideFade, + "slidefadevert" => AnimationStyle::SlideFadeVert, "once" => AnimationStyle::Once, "loop" => AnimationStyle::Loop, "" => AnimationStyle::None,