From 446c947ad1a20fd6916421aed72f7b91dd789845 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 22 Dec 2023 21:33:57 -0500 Subject: [PATCH] Render breadcrumb using muted colors --- crates/breadcrumbs2/src/breadcrumbs.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/breadcrumbs2/src/breadcrumbs.rs b/crates/breadcrumbs2/src/breadcrumbs.rs index 3b8ce1c6c5..e579c8ded0 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