From 5c8257585aee12aae09986394a3dcce5de9c2c68 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 13 Dec 2023 14:50:15 -0500 Subject: [PATCH] Fix styling of project search tabs (#3633) This PR fixes the styling of the project search tabs. We now have spacing between the icon and the tab label, as well as use the correct color for the icon based on whether the tab is active or not. Release Notes: - N/A --- crates/search2/src/project_search.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/search2/src/project_search.rs b/crates/search2/src/project_search.rs index f1b0c16d5708241cd4421e9c7b88d762383ff532..21df6d9aa2122ff7bf73398b63084298a6f6ecca 100644 --- a/crates/search2/src/project_search.rs +++ b/crates/search2/src/project_search.rs @@ -417,7 +417,12 @@ impl Item for ProjectSearchView { .filter(|query| !query.is_empty()) .unwrap_or_else(|| "Project search".into()); h_stack() - .child(IconElement::new(Icon::MagnifyingGlass)) + .gap_2() + .child(IconElement::new(Icon::MagnifyingGlass).color(if selected { + Color::Default + } else { + Color::Muted + })) .child(Label::new(tab_name).color(if selected { Color::Default } else {