Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add tooltip to recent projects button
Piotr Osiewiczd69b07bafd1f
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 73450e7c7d9..606a77cd2f6 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -229,15 +229,23 @@ impl CollabTitlebarItem {let mut ret = Flex::row().with_child(Stack::new().with_child(- MouseEventHandler::<ToggleProjectMenu, Self>::new(0, cx, |mouse_state, _| {+ MouseEventHandler::<ToggleProjectMenu, Self>::new(0, cx, |mouse_state, cx| {let style = project_style.in_state(self.project_popover.is_some()).style_for(mouse_state);+ enum RecentProjectsTooltip {}Label::new(name, style.text.clone()).contained().with_style(style.container).aligned().left()+ .with_tooltip::<RecentProjectsTooltip>(+ 0,+ "Recent projects".into(),+ None,+ theme.tooltip.clone(),+ cx,+ ).into_any_named("title-project-name")}).with_cursor_style(CursorStyle::PointingHand)