git: Fix git commit font fallbacks (#26184)

Closes #ISSUE

Release Notes:

- Fixed git commit font_fallbacks
This commit is contained in:
0x2CA
2025-03-06 04:06:00 +00:00
committed by GitHub
parent aec4d5cb26
commit 5c81dd7d39
+4 -1
View File
@@ -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,