Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

tabular_data_preview: Revive filter funnel icon (#63266)

Oleksandr Kholiavkoe6690f38cc04
diff --git a/assets/icons/filter_funnel.svg b/assets/icons/filter_funnel.svg
new file mode 100644
index 00000000000..4ccf2a9a5d2
--- /dev/null
+++ b/assets/icons/filter_funnel.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M12.9416 2.99643C13.08 2.79636 12.9568 2.5 12.7352 2.5H3.26475C3.04317 2.5 2.91999 2.79636 3.0584 2.99643L6.04033 7.30646C6.24713 7.60535 6.35981 7.97674 6.35981 8.3596C6.35981 9.18422 6.35981 11.4639 6.35981 12.891C6.35981 13.2285 6.59643 13.5 6.88831 13.5H9.11168C9.40357 13.5 9.64019 13.2285 9.64019 12.891C9.64019 11.4639 9.64019 9.18422 9.64019 8.3596C9.64019 7.97674 9.75289 7.60535 9.95969 7.30646L12.9416 2.99643Z" stroke="#DCE0E5" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index 1b2eda162cc..64531a165a2 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -141,6 +141,7 @@ pub enum IconName {
FileToml,
FileTree,
Filter,
+ FilterFunnel,
Flame,
FoldVertical,
Folder,
diff --git a/crates/tabular_data_preview/src/renderer/table_header.rs b/crates/tabular_data_preview/src/renderer/table_header.rs
index 8811284e08a..172a290c97a 100644
--- a/crates/tabular_data_preview/src/renderer/table_header.rs
+++ b/crates/tabular_data_preview/src/renderer/table_header.rs
@@ -669,7 +669,7 @@ impl TabularDataPreviewPane {
.trigger_with_tooltip(
IconButton::new(
ElementId::NamedInteger("filter-button".into(), col.get() as u64),
- IconName::Filter,
+ IconName::FilterFunnel,
)
.icon_size(IconSize::Small)
.style(if has_active_filters {