From 299a0bcbaae81a1a7c992cec42dedbfbfeca91bd Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Fri, 9 May 2025 11:47:26 +0200 Subject: [PATCH] search: Ensure inputs located in the toolbar match the background color of the toolbar (#30355) Closes #30267 This ensures they do not differ in color as described in the issue. Currently: grafik This PR: grafik Alternatively, we could potentially color the surrounding containers with the editor background, but I think this way around is more reasonable for the toolbar. Release Notes: - Improved background coloring for search inputs located in the toolbar. --- crates/search/src/buffer_search.rs | 2 +- crates/search/src/project_search.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs index 456943d476..94538cb46f 100644 --- a/crates/search/src/buffer_search.rs +++ b/crates/search/src/buffer_search.rs @@ -143,7 +143,7 @@ impl BufferSearchBar { }; let mut editor_style = EditorStyle { - background: cx.theme().colors().editor_background, + background: cx.theme().colors().toolbar_background, local_player: cx.theme().players().local(), text: text_style, ..EditorStyle::default() diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 2ef51b9141..b24cb9c973 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1760,7 +1760,7 @@ impl ProjectSearchBar { }; let mut editor_style = EditorStyle { - background: cx.theme().colors().editor_background, + background: cx.theme().colors().toolbar_background, local_player: cx.theme().players().local(), text: text_style, ..EditorStyle::default()