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: Ensure background color is the same even while zoomed in (#30804)

Danilo Leal0f4e52bde82e
diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rs
index e888ea61e09..3b7e8b3ee4a 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 6d6e5c471b5..4e3e0bae2b3 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(