git: Fix git commit font fallbacks (#26184)
Closes #ISSUE Release Notes: - Fixed git commit font_fallbacks
This commit is contained in:
parent
aec4d5cb26
commit
5c81dd7d39
1 changed files with 4 additions and 1 deletions
|
@ -84,9 +84,10 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
|
|||
|
||||
let font_size = TextSize::Small.rems(cx).to_pixels(window.rem_size());
|
||||
|
||||
let (font_family, font_features, font_weight, line_height) = if monospace {
|
||||
let (font_family, font_fallbacks, font_features, font_weight, line_height) = if monospace {
|
||||
(
|
||||
settings.buffer_font.family.clone(),
|
||||
settings.buffer_font.fallbacks.clone(),
|
||||
settings.buffer_font.features.clone(),
|
||||
settings.buffer_font.weight,
|
||||
font_size * settings.buffer_line_height.value(),
|
||||
|
@ -94,6 +95,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
|
|||
} else {
|
||||
(
|
||||
settings.ui_font.family.clone(),
|
||||
settings.ui_font.fallbacks.clone(),
|
||||
settings.ui_font.features.clone(),
|
||||
settings.ui_font.weight,
|
||||
window.line_height(),
|
||||
|
@ -106,6 +108,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
|
|||
text: TextStyle {
|
||||
color: cx.theme().colors().text,
|
||||
font_family,
|
||||
font_fallbacks,
|
||||
font_features,
|
||||
font_size: TextSize::Small.rems(cx).into(),
|
||||
font_weight,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue