From 560f08cfb92f75a16f4cfbee7fcf4a11aa4593d5 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sun, 15 Nov 2026 23:40:57 +0100 Subject: [PATCH] app: document the many-games scene and grey the unknown tile A recording with no champion gets a neutral tile instead of a colour picked from an empty name. The README lists `--scene many`, which repeats the sample games to fill the list, and says why the scrollbar needs `--at 1`. --- app/README.md | 4 ++++ app/src/screens/history.rs | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/README.md b/app/README.md index 8dd27f3..c696a41 100644 --- a/app/README.md +++ b/app/README.md @@ -21,8 +21,12 @@ cargo run -- --snap settings.png --scene settings cargo run -- --snap recording.png --scene recording cargo run -- --snap audio.png --scene audio cargo run -- --snap review.png --scene review +cargo run -- --snap many.png --scene many --at 1 # 60 sample games, to see the scrollbar ``` +Pass `--at 1` when the screenshot depends on a laid-out size (the scrollbar does): layout callbacks +run after the first frame. + `--live` renders without sample data: the app talks to the daemon and reads the real timelines from disk. Loading them takes a few seconds with a large history, so give it time before `--at`. diff --git a/app/src/screens/history.rs b/app/src/screens/history.rs index 29c4c33..a55d9f7 100644 --- a/app/src/screens/history.rs +++ b/app/src/screens/history.rs @@ -324,8 +324,11 @@ fn portrait(p: Paint, champion: Option<&str>) -> El { hash.wrapping_mul(16777619) ^ byte as u32 }) .rem_euclid(360) as f32; - let fill = rune::oklch(0.36, 0.075, hue); - let ink = rune::oklch(0.94, 0.02, hue); + let (fill, ink) = if name.is_empty() { + (p.t.control_off, p.muted()) + } else { + (rune::oklch(0.36, 0.075, hue), rune::oklch(0.94, 0.02, hue)) + }; el().key("portrait") .size(52.0, 52.0) .radius(radius::MD)