Skip to content

Commit

Permalink
Two more animation styles for workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
c0h2r authored Oct 4, 2023
1 parent 838886e commit dbac371
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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

0 comments on commit dbac371

Please sign in to comment.