Skip to content

Commit

Permalink
Merge pull request #125 from c0h2r/master
Browse files Browse the repository at this point in the history
Make `Animations`' fields public, add 2 new animation styles
  • Loading branch information
yavko authored Oct 5, 2023
2 parents 7dc8242 + dbac371 commit a8ca325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/data/regular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ pub enum AnimationStyle {
Slide,
/// Vertical slide animation
SlideVert,
SlideFade,
SlideFadeVert,
/// Popin animation (with percentage)
PopIn(u8),
/// Fade animation
Expand Down Expand Up @@ -488,6 +490,8 @@ impl<Str: ToString + Clone> From<Str> 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,
Expand Down Expand Up @@ -580,7 +584,7 @@ struct AnimationsRaw(Vec<AnimationRaw>, Vec<RawBezierIdent>);

/// Struct that holds animations and beziers
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Animations(Vec<Animation>, Vec<BezierIdent>);
pub struct Animations(pub Vec<Animation>, pub Vec<BezierIdent>);

#[async_trait]
impl HyprData for Animations {
Expand Down

0 comments on commit a8ca325

Please sign in to comment.