From 625e45bac095793381466dddf29781d83184c07f Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 7 May 2025 13:24:36 -0300 Subject: [PATCH] agent: Improve onboarding modal background illustration (#30137) Tone down the grid background a bit more so text is more legible. Release Notes: - N/A --- crates/agent/src/ui/onboarding_modal.rs | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/crates/agent/src/ui/onboarding_modal.rs b/crates/agent/src/ui/onboarding_modal.rs index 3d3bec9bc472825169eed0e54dc89404dda52ff3..8665059a3d160406bf76fe534837da8f8b1c77c2 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()