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: 
<img width="1182" alt="grafik"
src="https://github.com/user-attachments/assets/7ccc5116-f6b4-4ffc-80fc-b5b51c49a8f2"
/>

This PR: 
<img width="1182" alt="grafik"
src="https://github.com/user-attachments/assets/dcff631a-c1a8-423e-847c-8678a77e7a8e"
/>

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.
This commit is contained in:
Finn Evers 2025-05-09 11:47:26 +02:00 committed by GitHub
parent cfb06bac8a
commit 299a0bcbaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()