agent: Adjust full screen menu item label and background color (#35592)
Release Notes: - N/A
This commit is contained in:
parent
2c8f144e6b
commit
fa8dd1c547
2 changed files with 6 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue