Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Render breadcrumb using muted colors
Marshall Bowers446c947ad1a2
diff --git a/crates/breadcrumbs2/src/breadcrumbs.rs b/crates/breadcrumbs2/src/breadcrumbs.rsindex 3b8ce1c6c5a..e579c8ded05 100644--- a/crates/breadcrumbs2/src/breadcrumbs.rs+++ b/crates/breadcrumbs2/src/breadcrumbs.rs@@ -53,12 +53,15 @@ impl Render for Breadcrumbs {};let highlighted_segments = segments.into_iter().map(|segment| {+ let mut text_style = cx.text_style();+ text_style.color = Color::Muted.color(cx);+StyledText::new(segment.text)- .with_highlights(&cx.text_style(), segment.highlights.unwrap_or_default())+ .with_highlights(&text_style, segment.highlights.unwrap_or_default()).into_any()});let breadcrumbs = Itertools::intersperse_with(highlighted_segments, || {- Label::new("›").into_any_element()+ Label::new("›").color(Color::Muted).into_any_element()});let editor = active_item