agent: Adjust full screen menu item label and background color (#35592)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-08-04 15:01:32 -03:00 committed by GitHub
parent 2c8f144e6b
commit fa8dd1c547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -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()

View file

@ -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
}))
}