Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

Right-click menus and drop-down lists use the font chosen in Settings (913)

denfry61060f6fbdde
diff --git a/crates/rf-app/src/fluent_menu.rs b/crates/rf-app/src/fluent_menu.rs
index f4bbb260..f39dbb40 100644
--- a/crates/rf-app/src/fluent_menu.rs
+++ b/crates/rf-app/src/fluent_menu.rs
@@ -793,6 +793,8 @@ impl Render for LevelView {
};
surface
.track_focus(&self.focus)
+ // (a window of its own, opened without the main window's root: the font chosen in Settings is set here, issue 913)
+ .font_family(gpui_kit::component::theme::Theme::global(cx).font_family.clone())
.text_color(p.text)
.on_key_down(cx.listener(|this, ev: &KeyDownEvent, window, cx| {
this.menu.update(cx, |m, cx| m.on_key(ev, window, cx));
diff --git a/crates/rf-app/src/select_box.rs b/crates/rf-app/src/select_box.rs
index 84205188..a5f26043 100644
--- a/crates/rf-app/src/select_box.rs
+++ b/crates/rf-app/src/select_box.rs
@@ -447,6 +447,8 @@ impl Render for SelectView {
.px(px(m.pad_x))
.py(px(m.pad_y))
.when_some(fill, |d, f| d.bg(f))
+ // (a window of its own, opened without the main window's root: the font chosen in Settings is set here, issue 913)
+ .font_family(gpui_kit::component::theme::Theme::global(cx).font_family.clone())
.text_color(p.text)
.track_focus(&self.focus)
.capture_key_down(cx.listener(|this, ev: &KeyDownEvent, _, cx| this.on_key(ev, cx)))