Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix tab text colors
Conrad Irwin0edcec7c4eee
diff --git a/crates/editor2/src/items.rs b/crates/editor2/src/items.rsindex 84263d4ed75..a4d34ad36f2 100644--- a/crates/editor2/src/items.rs+++ b/crates/editor2/src/items.rs@@ -584,12 +584,18 @@ impl Item for Editor {.flex().flex_row().items_center()- .text_color(gpui::white())+ .gap_2().child(self.title(cx).to_string()).children(detail.and_then(|detail| {let path = path_for_buffer(&self.buffer, detail, false, cx)?;let description = path.to_string_lossy();- Some(util::truncate_and_trailoff(&description, MAX_TAB_TITLE_LEN))++ Some(+ div()+ .text_color(theme.colors().text_muted)+ .text_xs()+ .child(util::truncate_and_trailoff(&description, MAX_TAB_TITLE_LEN)),+ )})),)}diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rsindex c56defed266..eef829afa71 100644--- a/crates/workspace2/src/pane.rs+++ b/crates/workspace2/src/pane.rs@@ -1361,13 +1361,15 @@ impl Pane {let label = item.tab_content(Some(detail), cx);let close_icon = || IconElement::new(Icon::Close).color(IconColor::Muted);- 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().ghost_element_hover,cx.theme().colors().ghost_element_active,),true => (+ cx.theme().colors().text,cx.theme().colors().tab_active,cx.theme().colors().element_hover,cx.theme().colors().element_active,@@ -1397,6 +1399,7 @@ impl Pane {.flex().items_center().gap_1p5()+ .text_color(text_color).children(if item.has_conflict(cx) {Some(IconElement::new(Icon::ExclamationTriangle)