Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Adjust pulsating animation ranges (#16179)

Danilo Leal2f5031bd2846
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index 314365b4980..60689630645 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 f4b30fb36e5..3c4fab7cea8 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),
),
)