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.

Update card: the download highlight runs smoothly too

gelenmedyad38900af2b2c
diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rs
index 98bcd80d..a54c9fa1 100644
--- a/crates/rf-app/src/settings_view.rs
+++ b/crates/rf-app/src/settings_view.rs
@@ -4471,8 +4471,8 @@ fn update_card(p: &Palette, s: &Settings) -> AnyElement {
// behind the row: a light sweeping while checking, a bar filling while downloading, full when done
let tint = p.accent;
let layer = match state {
- // Checking lasts a second or two: the sweep runs at the display's rate for that short while. Drawn at the slow redraw's
- // pace it stuttered at about 5 frames a second (user, 2026-12-04).
+ // The sweep runs at the display's rate: drawn at the slow redraw's pace it stuttered at about 5 frames a second (user,
+ // 2026-12-04). It asks for frames only while the card is on screen.
State::Checking => Some(
glow(tint, 0.22)
.w(relative(0.3))
@@ -4491,9 +4491,16 @@ fn update_card(p: &Palette, s: &Settings) -> AnyElement {
.left_0()
.w(relative(pct as f32 / 100.0))
.overflow_hidden()
- // (no running highlight: a download can take minutes, and at the slow redraw's pace it stuttered; the bar's own
- // growth is the motion)
.bg(tint.opacity(0.18))
+ .child(
+ // a soft highlight running along the filled part, at the display's rate: it asks for frames only while the card
+ // is on screen (a hidden or closed Settings window draws nothing)
+ glow(tint, 0.2).w(px(120.)).with_animation(
+ "upd-run",
+ Animation::new(std::time::Duration::from_millis(1000)).repeat(),
+ |el, t| el.left(relative(-0.2 + 1.2 * t)),
+ ),
+ )
.into_any_element(),
),
State::Ready(_) => Some(div().absolute().inset_0().bg(tint.opacity(0.14)).into_any_element()),