Use buffer font for search (#10455)

It's wierd to type code/regex in the UI font

Release Notes:

- Continue to use buffer font for search
This commit is contained in:
Conrad Irwin 2024-04-11 22:15:12 -06:00 committed by GitHub
parent 27ba165046
commit 98533079e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -113,8 +113,8 @@ impl BufferSearchBar {
} else {
color
},
font_family: settings.ui_font.family.clone(),
font_features: settings.ui_font.features,
font_family: settings.buffer_font.family.clone(),
font_features: settings.buffer_font.features,
font_size: rems(0.875).into(),
font_weight: FontWeight::NORMAL,
font_style: FontStyle::Normal,

View file

@ -1422,8 +1422,8 @@ impl ProjectSearchBar {
} else {
cx.theme().colors().text
},
font_family: settings.ui_font.family.clone(),
font_features: settings.ui_font.features,
font_family: settings.buffer_font.family.clone(),
font_features: settings.buffer_font.features,
font_size: rems(0.875).into(),
font_weight: FontWeight::NORMAL,
font_style: FontStyle::Normal,