From fa78c50a51b6c32ce7f2e68821944f24975729ef Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 8 Dec 2019 04:47:49 +0100 Subject: [PATCH] Wave animation in the gradient Layer --- .../Settings/LayerEffectConfig.cs | 2 + .../Layers/Control_GradientLayer.xaml | 22 +++++----- .../Layers/Control_GradientLayer.xaml.cs | 21 +++++++++- .../Settings/Layers/GradientLayerHandler.cs | 40 +++++++++++++------ 4 files changed, 62 insertions(+), 23 deletions(-) diff --git a/Project-Aurora/Project-Aurora/Settings/LayerEffectConfig.cs b/Project-Aurora/Project-Aurora/Settings/LayerEffectConfig.cs index 34b29387e..b85205f31 100644 --- a/Project-Aurora/Project-Aurora/Settings/LayerEffectConfig.cs +++ b/Project-Aurora/Project-Aurora/Settings/LayerEffectConfig.cs @@ -23,6 +23,7 @@ public class LayerEffectConfig public Color secondary; public float speed; public float angle; + public float gradient_size = 100.0f; public AnimationType animation_type; public bool animation_reverse; public EffectBrush brush; @@ -35,6 +36,7 @@ public class LayerEffectConfig [JsonIgnore] public Color Secondary { get => secondary; set => secondary = value; } [JsonIgnore] public float Speed { get => speed; set => speed = value; } [JsonIgnore] public float Angle { get => angle; set => angle = value; } + [JsonIgnore] public float GradientSize { get => gradient_size; set => gradient_size = value; } [JsonIgnore] public AnimationType AnimationType { get => animation_type; set => animation_type = value; } [JsonIgnore] public bool AnimationReverse { get => animation_reverse; set => animation_reverse = value; } [JsonIgnore] public EffectBrush Brush { get => brush; set => brush = value; } diff --git a/Project-Aurora/Project-Aurora/Settings/Layers/Control_GradientLayer.xaml b/Project-Aurora/Project-Aurora/Settings/Layers/Control_GradientLayer.xaml index e5d021b6e..114ca5ac8 100644 --- a/Project-Aurora/Project-Aurora/Settings/Layers/Control_GradientLayer.xaml +++ b/Project-Aurora/Project-Aurora/Settings/Layers/Control_GradientLayer.xaml @@ -30,17 +30,21 @@ - - - + + + + + +