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.

agent: Improve onboarding modal background illustration (#30137)

Danilo Leal625e45bac095
diff --git a/crates/agent/src/ui/onboarding_modal.rs b/crates/agent/src/ui/onboarding_modal.rs
index 3d3bec9bc47..8665059a3d1 100644
--- a/crates/agent/src/ui/onboarding_modal.rs
+++ b/crates/agent/src/ui/onboarding_modal.rs
@@ -92,10 +92,10 @@ impl Render for AgentOnboardingModal {
.top_0()
.right(px(-1.0))
.w(px(441.))
- .h(px(167.))
+ .h(px(240.))
.child(
- Vector::new(VectorName::Grid, rems_from_px(441.), rems_from_px(167.))
- .color(ui::Color::Custom(cx.theme().colors().text.alpha(0.1))),
+ Vector::new(VectorName::Grid, rems_from_px(441.), rems_from_px(240.))
+ .color(ui::Color::Custom(cx.theme().colors().text.alpha(0.05))),
),
)
.child(
@@ -110,6 +110,23 @@ impl Render for AgentOnboardingModal {
.color(ui::Color::Custom(cx.theme().colors().text.alpha(0.32))),
),
)
+ .child(
+ div()
+ .absolute()
+ .inset_0()
+ .size_full()
+ .bg(gpui::linear_gradient(
+ 175.,
+ gpui::linear_color_stop(
+ cx.theme().colors().elevated_surface_background,
+ 0.,
+ ),
+ gpui::linear_color_stop(
+ cx.theme().colors().elevated_surface_background.opacity(0.),
+ 0.8,
+ ),
+ )),
+ )
.child(
v_flex()
.w_full()