Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Use buffer_font for folds and change foreground color (#48652)
xdBronch52cddaae3762
diff --git a/crates/editor/src/display_map/fold_map.rs b/crates/editor/src/display_map/fold_map.rsindex 99667bf9892..61447c37fbe 100644--- a/crates/editor/src/display_map/fold_map.rs+++ b/crates/editor/src/display_map/fold_map.rs@@ -56,9 +56,13 @@ impl FoldPlaceholder {/// Callers add children and event handlers on top.pub fn fold_element(fold_id: FoldId, cx: &App) -> Stateful<gpui::Div> {use gpui::{InteractiveElement as _, StatefulInteractiveElement as _, Styled as _};- use theme::ActiveTheme as _;+ use settings::Settings as _;+ use theme::{ActiveTheme as _, ThemeSettings};+ let settings = ThemeSettings::get_global(cx);gpui::div().id(fold_id)+ .font(settings.buffer_font.clone())+ .text_color(cx.theme().colors().text_placeholder).bg(cx.theme().colors().ghost_element_background).hover(|style| style.bg(cx.theme().colors().ghost_element_hover)).active(|style| style.bg(cx.theme().colors().ghost_element_active))