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`.
This commit is contained in:
vhaudiquet committed 2026-11-15 23:40:57 +01:00
1 parent 17c73925bf
commit 560f08cfb9
2 files changed
+9 -2

No files matched your search

+5 -2
View File
@@ -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)