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:
parent
1a62396b1e
commit
84f2e0ee37
1 changed files with 6 additions and 7 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue