Unify icons using multiple variants, remove all unused icons
This commit is contained in:
parent
f4e40b3411
commit
24974ee2fa
514 changed files with 86 additions and 4033 deletions
|
@ -511,7 +511,7 @@ impl Item for ProjectSearchView {
|
|||
) -> AnyElement<T> {
|
||||
Flex::row()
|
||||
.with_child(
|
||||
Svg::new("icons/magnifying_glass_12.svg")
|
||||
Svg::new("icons/magnifying_glass.svg")
|
||||
.with_color(tab_theme.label.text.color)
|
||||
.constrained()
|
||||
.with_width(tab_theme.type_icon_width)
|
||||
|
@ -1440,7 +1440,7 @@ impl View for ProjectSearchBar {
|
|||
let search = _search.read(cx);
|
||||
let filter_button = render_option_button_icon(
|
||||
search.filters_enabled,
|
||||
"icons/filter_12.svg",
|
||||
"icons/filter.svg",
|
||||
0,
|
||||
"Toggle filters",
|
||||
Box::new(ToggleFilters),
|
||||
|
@ -1471,14 +1471,14 @@ impl View for ProjectSearchBar {
|
|||
};
|
||||
let case_sensitive = is_semantic_disabled.then(|| {
|
||||
render_option_button_icon(
|
||||
"icons/case_insensitive_12.svg",
|
||||
"icons/case_insensitive.svg",
|
||||
SearchOptions::CASE_SENSITIVE,
|
||||
cx,
|
||||
)
|
||||
});
|
||||
|
||||
let whole_word = is_semantic_disabled.then(|| {
|
||||
render_option_button_icon("icons/word_search_12.svg", SearchOptions::WHOLE_WORD, cx)
|
||||
render_option_button_icon("icons/word_search.svg", SearchOptions::WHOLE_WORD, cx)
|
||||
});
|
||||
|
||||
let search_button_for_mode = |mode, side, cx: &mut ViewContext<ProjectSearchBar>| {
|
||||
|
|
|
@ -63,8 +63,8 @@ impl SearchOptions {
|
|||
|
||||
pub fn icon(&self) -> &'static str {
|
||||
match *self {
|
||||
SearchOptions::WHOLE_WORD => "icons/word_search_12.svg",
|
||||
SearchOptions::CASE_SENSITIVE => "icons/case_insensitive_12.svg",
|
||||
SearchOptions::WHOLE_WORD => "icons/word_search.svg",
|
||||
SearchOptions::CASE_SENSITIVE => "icons/case_insensitive.svg",
|
||||
_ => panic!("{:?} is not a named SearchOption", self),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue