From 2f5031bd2846e8a45245836ea2fd95833ba49f8c Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:31:10 -0300 Subject: [PATCH] Adjust pulsating animation ranges (#16179) Just a fine-grain refinement to the pulsating animation range. Release Notes: - N/A --- crates/assistant/src/assistant_panel.rs | 6 +++--- crates/ui/src/components/stories/label.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 314365b498..6068963064 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -1465,7 +1465,7 @@ impl WorkflowStepStatus { ("resolving-suggestion-animation", id), Animation::new(Duration::from_secs(2)) .repeat() - .with_easing(pulsating_between(0.2, 1.0)), + .with_easing(pulsating_between(0.4, 0.8)), |label, delta| label.alpha(delta), ) .into_any_element(), @@ -1552,7 +1552,7 @@ impl WorkflowStepStatus { ("applying-step-transformation-label", id), Animation::new(Duration::from_secs(2)) .repeat() - .with_easing(pulsating_between(0.2, 1.0)), + .with_easing(pulsating_between(0.4, 0.8)), |label, delta| label.alpha(delta), ), ) @@ -3005,7 +3005,7 @@ impl ContextEditor { "pulsating-label", Animation::new(Duration::from_secs(2)) .repeat() - .with_easing(pulsating_between(0.2, 1.0)), + .with_easing(pulsating_between(0.4, 0.8)), |label, delta| label.alpha(delta), ) .into_any_element() diff --git a/crates/ui/src/components/stories/label.rs b/crates/ui/src/components/stories/label.rs index f4b30fb36e..3c4fab7cea 100644 --- a/crates/ui/src/components/stories/label.rs +++ b/crates/ui/src/components/stories/label.rs @@ -30,7 +30,7 @@ impl Render for LabelStory { "pulsating-label", Animation::new(Duration::from_secs(2)) .repeat() - .with_easing(pulsating_between(0.2, 1.0)), + .with_easing(pulsating_between(0.4, 0.8)), |label, delta| label.alpha(delta), ), )