Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Use a default font for the minimap (#45999)

Marco Mihai Condrache43f7dc46e90a
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 764b40ddb79..245d7a294ee 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -20275,6 +20275,7 @@ impl Editor {
cx: &mut Context<Self>,
) -> Entity<Self> {
const MINIMAP_FONT_WEIGHT: gpui::FontWeight = gpui::FontWeight::BLACK;
+ const MINIMAP_FONT_FAMILY: SharedString = SharedString::new_static(".ZedMono");
let mut minimap = Editor::new_internal(
EditorMode::Minimap {
@@ -20290,6 +20291,7 @@ impl Editor {
minimap.set_text_style_refinement(TextStyleRefinement {
font_size: Some(MINIMAP_FONT_SIZE),
font_weight: Some(MINIMAP_FONT_WEIGHT),
+ font_family: Some(MINIMAP_FONT_FAMILY),
..Default::default()
});
minimap.update_minimap_configuration(minimap_settings, cx);