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)