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.

Accent colour swatches wrap as one block on narrow windows

gelenmedyad5b58e402804
diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rs
index ad0ea8a6..ba1aa062 100644
--- a/crates/rf-app/src/settings_view.rs
+++ b/crates/rf-app/src/settings_view.rs
@@ -1519,9 +1519,12 @@ fn accent_card(p: &Palette, s: &Settings) -> AnyElement {
.child(label)
};
let mut row = h_flex().flex_wrap().gap_2().items_center().justify_end().child(chip("accent-windows", t!("Windows'un rengi"), current.is_none(), p).on_click(|_, _, cx| settings::update(cx, |s| s.accent_color.clear())));
+ // the swatches as one block: on a narrow window they go down a line together, not one by one (Discord, 2026-12-01: "the accent
+ // colour row wraps too much")
+ let mut swatches = h_flex().flex_shrink_0().gap_2().items_center();
for (i, c) in ACCENT_CHOICES.into_iter().enumerate() {
let on = current == Some(c);
- row = row.child(
+ swatches = swatches.child(
div()
.id(("accent-choice", i))
.size(px(24.))
@@ -1533,6 +1536,7 @@ fn accent_card(p: &Palette, s: &Settings) -> AnyElement {
.on_click(move |_, _, cx| settings::update(cx, move |s| s.accent_color = rf_win::accent::to_hex(c))),
);
}
+ row = row.child(swatches);
let custom = current.is_some_and(|c| !ACCENT_CHOICES.contains(&c));
let shown = s.accent_color.clone();
row = row.child(chip("accent-own", t!("Kendi rengim…"), custom, p).on_click(move |_, window, cx| {