From 11c6ada08f84f2de7d1024b74e54124063cee371 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Tue, 6 Aug 2024 15:51:53 -0400 Subject: [PATCH] Add tooltip for toggling filters (#15879) Release Notes: - N/A --- crates/search/src/project_search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 96be71b7d9..d0c24a6f8a 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1414,7 +1414,8 @@ impl Render for ProjectSearchBar { .as_ref() .map(|search| search.read(cx).filters_enabled) .unwrap_or_default(), - ), + ) + .tooltip(|cx| Tooltip::for_action("Toggle filters", &ToggleFilters, cx)), ) .child( IconButton::new("project-search-toggle-replace", IconName::Replace)