From 0f4e52bde82e3ee60e9765e9dd91f99730acc429 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 16 May 2025 06:48:22 -0300 Subject: [PATCH] agent: Ensure background color is the same even while zoomed in (#30804) Release Notes: - agent: Fixed the background color of the agent panel changing if you zoomed it in. --- crates/agent/src/active_thread.rs | 1 + crates/agent/src/agent_panel.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rs index e888ea61e0910153d417b722966fca411e00a4be..3b7e8b3ee4a9d8609bcba42afc2653039f76009b 100644 --- a/crates/agent/src/active_thread.rs +++ b/crates/agent/src/active_thread.rs @@ -3417,6 +3417,7 @@ impl Render for ActiveThread { v_flex() .size_full() .relative() + .bg(cx.theme().colors().panel_background) .on_mouse_move(cx.listener(|this, _, _, cx| { this.show_scrollbar = true; this.hide_scrollbar_later(cx); diff --git a/crates/agent/src/agent_panel.rs b/crates/agent/src/agent_panel.rs index 6d6e5c471b54481787511d2d505fd3977b515a9e..4e3e0bae2b3d2aae2f794fcecea76b5cda9b2a41 100644 --- a/crates/agent/src/agent_panel.rs +++ b/crates/agent/src/agent_panel.rs @@ -2135,6 +2135,7 @@ impl AgentPanel { v_flex() .size_full() + .bg(cx.theme().colors().panel_background) .when(recent_history.is_empty(), |this| { let configuration_error_ref = &configuration_error; this.child(