Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge branch 'main' into editor2-rendering
Conrad Irwinc59817cd72dc
diff --cc crates/ui2/src/components.rsindex f10f8cee8d7,a8a7ddfd46f..857d0f1042f--- a/crates/ui2/src/components.rs+++ b/crates/ui2/src/components.rs@@@ -1,73 -1,51 +1,53 @@@- mod assistant_panel;- mod breadcrumb;- mod buffer;- mod buffer_search;- mod chat_panel;- mod collab_panel;- mod command_palette;+ mod avatar;+ mod button;+ mod checkbox;mod context_menu;- mod copilot;- mod editor_pane;+ mod details;mod facepile;+ mod icon;mod icon_button;+ mod indicator;+ mod input;mod keybinding;- mod language_selector;+ mod label;mod list;mod modal;- mod multi_buffer;mod notification_toast;- mod notifications_panel;mod palette;mod panel;- mod panes;+ mod player;mod player_stack;- mod project_panel;- mod recent_projects;- mod status_bar;+ mod slot;+ mod stack;mod tab;- mod tab_bar;- mod terminal;- mod theme_selector;- mod title_bar;mod toast;- mod toolbar;+ mod toggle;+ mod tool_divider;+mod tooltip;- mod traffic_lights;- mod workspace;- pub use assistant_panel::*;- pub use breadcrumb::*;- pub use buffer::*;- pub use buffer_search::*;- pub use chat_panel::*;- pub use collab_panel::*;- pub use command_palette::*;+ pub use avatar::*;+ pub use button::*;+ pub use checkbox::*;pub use context_menu::*;- pub use copilot::*;- pub use editor_pane::*;+ pub use details::*;pub use facepile::*;+ pub use icon::*;pub use icon_button::*;+ pub use indicator::*;+ pub use input::*;pub use keybinding::*;- pub use language_selector::*;+ pub use label::*;pub use list::*;pub use modal::*;- pub use multi_buffer::*;pub use notification_toast::*;- pub use notifications_panel::*;pub use palette::*;pub use panel::*;- pub use panes::*;+ pub use player::*;pub use player_stack::*;- pub use project_panel::*;- pub use recent_projects::*;- pub use status_bar::*;+ pub use slot::*;+ pub use stack::*;pub use tab::*;- pub use tab_bar::*;- pub use terminal::*;- pub use theme_selector::*;- pub use title_bar::*;pub use toast::*;- pub use toolbar::*;+ pub use toggle::*;+ pub use tool_divider::*;+pub use tooltip::*;- pub use traffic_lights::*;- pub use workspace::*;diff --cc crates/workspace2/src/pane.rsindex 64937214c9b,44f705ebb2a..5af5514da43--- a/crates/workspace2/src/pane.rs+++ b/crates/workspace2/src/pane.rs@@@ -1359,31 -1359,16 +1359,31 @@@ impl Panecx: &mut ViewContext<'_, Pane>,) -> impl Component<Self> {let label = item.tab_content(Some(detail), cx);- let close_icon = || IconElement::new(Icon::Close).color(IconColor::Muted);+ let close_icon = || {+ let id = item.id();++ div()+ .id(item.id())+ .invisible()+ .group_hover("", |style| style.visible())+ .child(IconButton::new("close_tab", Icon::Close).on_click(+ move |pane: &mut Self, cx| {+ pane.close_item_by_id(id, SaveIntent::Close, cx)+ .detach_and_log_err(cx);+ },+ ))+ };- let (tab_bg, tab_hover_bg, tab_active_bg) = match ix == self.active_item_index {+ let (text_color, tab_bg, tab_hover_bg, tab_active_bg) = match ix == self.active_item_index {false => (+ cx.theme().colors().text_muted,- cx.theme().colors().tab_inactive,+ cx.theme().colors().tab_inactive_background,cx.theme().colors().ghost_element_hover,cx.theme().colors().ghost_element_active,),true => (+ cx.theme().colors().text,- cx.theme().colors().tab_active,+ cx.theme().colors().tab_active_background,cx.theme().colors().element_hover,cx.theme().colors().element_active,),diff --cc crates/workspace2/src/status_bar.rsindex 4f7ba02c2ae,ac99be9f892..fcf6ac3b613--- a/crates/workspace2/src/status_bar.rs+++ b/crates/workspace2/src/status_bar.rs@@@ -44,8 -44,7 +44,8 @@@ impl Render for StatusBar.items_center().justify_between().w_full()+ .h_8()- .bg(cx.theme().colors().status_bar)+ .bg(cx.theme().colors().status_bar_background).child(self.render_left_tools(cx)).child(self.render_right_tools(cx))}