Use buffer font in the terminal inline assistant (#18009)

This PR is a follow up to
https://github.com/zed-industries/zed/pull/17875.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-09-18 16:36:32 +02:00 committed by GitHub
parent 1a62396b1e
commit 84f2e0ee37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -570,7 +570,7 @@ impl Render for PromptEditor {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_y_1() .border_y_1()
.border_color(cx.theme().status().info_border) .border_color(cx.theme().status().info_border)
.py_1p5() .py_2()
.h_full() .h_full()
.w_full() .w_full()
.on_action(cx.listener(Self::confirm)) .on_action(cx.listener(Self::confirm))
@ -949,12 +949,11 @@ impl PromptEditor {
} else { } else {
cx.theme().colors().text cx.theme().colors().text
}, },
font_family: settings.ui_font.family.clone(), font_family: settings.buffer_font.family.clone(),
font_features: settings.ui_font.features.clone(), font_fallbacks: settings.buffer_font.fallbacks.clone(),
font_fallbacks: settings.ui_font.fallbacks.clone(), font_size: settings.buffer_font_size.into(),
font_size: rems(0.875).into(), font_weight: settings.buffer_font.weight,
font_weight: settings.ui_font.weight, line_height: relative(settings.buffer_line_height.value()),
line_height: relative(1.3),
..Default::default() ..Default::default()
}; };
EditorElement::new( EditorElement::new(