collab_ui: Add tooltip to branches popover (#2695)
Z-2554 Release Notes: - N/A
This commit is contained in:
parent
52a497be21
commit
6e24ded2bc
1 changed files with 9 additions and 1 deletions
|
@ -264,7 +264,8 @@ impl CollabTitlebarItem {
|
||||||
MouseEventHandler::<ToggleVcsMenu, Self>::new(
|
MouseEventHandler::<ToggleVcsMenu, Self>::new(
|
||||||
0,
|
0,
|
||||||
cx,
|
cx,
|
||||||
|mouse_state, _| {
|
|mouse_state, cx| {
|
||||||
|
enum BranchPopoverTooltip {}
|
||||||
let style = git_style
|
let style = git_style
|
||||||
.in_state(self.branch_popover.is_some())
|
.in_state(self.branch_popover.is_some())
|
||||||
.style_for(mouse_state);
|
.style_for(mouse_state);
|
||||||
|
@ -274,6 +275,13 @@ impl CollabTitlebarItem {
|
||||||
.with_margin_right(item_spacing)
|
.with_margin_right(item_spacing)
|
||||||
.aligned()
|
.aligned()
|
||||||
.left()
|
.left()
|
||||||
|
.with_tooltip::<BranchPopoverTooltip>(
|
||||||
|
0,
|
||||||
|
"Recent branches".into(),
|
||||||
|
None,
|
||||||
|
theme.tooltip.clone(),
|
||||||
|
cx,
|
||||||
|
)
|
||||||
.into_any_named("title-project-branch")
|
.into_any_named("title-project-branch")
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue