Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Adjust full screen menu item label and background color (#35592)
Danilo Lealfa8dd1c54740
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex 24d8b733969..9ea92091896 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -2453,6 +2453,7 @@ impl Render for AcpThreadView {.on_action(cx.listener(Self::previous_history_message)).on_action(cx.listener(Self::next_history_message)).on_action(cx.listener(Self::open_agent_diff))+ .bg(cx.theme().colors().panel_background).child(match &self.thread_state {ThreadState::Unauthenticated { connection } => v_flex().p_2()diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex 4751eff15ed..5f3315f69aa 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -1880,10 +1880,10 @@ impl AgentPanel {}),);- let zoom_in_label = if self.is_zoomed(window, cx) {- "Zoom Out"+ let full_screen_label = if self.is_zoomed(window, cx) {+ "Disable Full Screen"} else {- "Zoom In"+ "Enable Full Screen"};let active_thread = match &self.active_view {@@ -2071,7 +2071,8 @@ impl AgentPanel {menu = menu.action("Rules…", Box::new(OpenRulesLibrary::default())).action("Settings", Box::new(OpenSettings))- .action(zoom_in_label, Box::new(ToggleZoom));+ .separator()+ .action(full_screen_label, Box::new(ToggleZoom));menu}))}