Provide tooltips for pane buttons
This commit is contained in:
parent
1a353ad25d
commit
e5fd953b4f
2 changed files with 32 additions and 16 deletions
|
@ -68,6 +68,10 @@ impl TerminalPanel {
|
|||
.with_child(Pane::render_tab_bar_button(
|
||||
0,
|
||||
"icons/plus_12.svg",
|
||||
Some((
|
||||
"New Terminal".into(),
|
||||
Some(Box::new(workspace::NewTerminal)),
|
||||
)),
|
||||
cx,
|
||||
move |_, cx| {
|
||||
let this = this.clone();
|
||||
|
@ -88,6 +92,7 @@ impl TerminalPanel {
|
|||
} else {
|
||||
"icons/maximize_8.svg"
|
||||
},
|
||||
Some(("Toggle Zoom".into(), Some(Box::new(workspace::ToggleZoom)))),
|
||||
cx,
|
||||
move |pane, cx| pane.toggle_zoom(&Default::default(), cx),
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue