mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-16 15:11:25 +00:00
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
This commit is contained in:
parent
9a7de98242
commit
5c8257585a
1 changed files with 6 additions and 1 deletions
|
@ -417,7 +417,12 @@ impl Item for ProjectSearchView {
|
||||||
.filter(|query| !query.is_empty())
|
.filter(|query| !query.is_empty())
|
||||||
.unwrap_or_else(|| "Project search".into());
|
.unwrap_or_else(|| "Project search".into());
|
||||||
h_stack()
|
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 {
|
.child(Label::new(tab_name).color(if selected {
|
||||||
Color::Default
|
Color::Default
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue