WP-136: Portrait cover slots in the TV grid

Status: ✅ Done (2026-12-02), every exit criterion met. Fork PR barefootbetters/scummvm#64 merged on 2026-12-02 (merge commit 1fbc5d5439), private PR barefootbetters/scooby-engine-private#88 the same day (squash f49a272). The TV runs 26041072 with portrait slots (§Result). Decision D1 answered by Jeff on 2026-12-02 (§Decisions). Phase: 5 (polish & distribution). Depends on:

Unblocks: whole box fronts on the TV, the first of the code items the redesign’s TV mockup needs. Companion EC: — (the steps fit in §Execution). Pre-flight: required. The packet adds a commit to the fork’s shared GUI code (gui/widgets/grid.cpp) and changes what the TV build packages, as WP-132 and WP-135 did. Targets generation(s): none. The grid and the theme are engine-independent. Estimated effort: half a day: the fork commit, the theme and pack, one TV build and the checks.


Goal

The TV grid shows each game’s whole box front. Its cover slots are portrait, and a cover of any shape sits at the bottom of its slot, centred, like boxes on a shelf. The tile behind the cover, the badges, the dimming of a missing game and the selection ring follow the cover, not the empty slot above it. One brand-free fork commit lets a theme ask for that; a theme that doesn’t draws the grid as today.

Background

Scope

In scope

  1. The fork commit, brand-free. A new optional layout variable, Globals.Grid.ThumbnailHeightPercent: the slot’s height as a percentage of its width. When a theme defines it:
    • the slot is that tall (140 gives a 5:7 box);
    • each cover is drawn at the bottom of the slot, centred across it;
    • the tile behind it, the badges, the demo overlay and the dimming use the cover’s rectangle;
    • the selection ring starts at the cover’s top.

    When a theme doesn’t define it, nothing changes: square slots, covers at the top left, everything placed on the slot. No stock theme file changes.

  2. The TV theme, in the private assemble_theme.py: Grid.ThumbnailHeightPercent = 140, Phantom’s whole front.
  3. The TV pack: Phantom’s cover becomes the whole box front (512 × 717 from the 714 × 1000 source, nothing cropped), and New-ThumbnailPack.ps1 accepts covers 512 wide and 512 to 768 tall. The README’s cover specification and the manifest say so.
  4. The TV build, installed over 26041071 with adb install -r (the app’s data and games stay), and captures.

Out of scope

Decisions

Answered by Jeff on 2026-12-02 (DECISIONS.md).

Dependencies

Execution

  1. Pre-flight, recorded in docs/reference/pre-flight-WP-136-<date>.md.
  2. The fork commit on wp-136-grid-portrait-slots.
  3. The theme and pack: the variable in the generated layout, Phantom’s whole front, the pack script, Build-TvAppTheme.ps1 and New-ThumbnailPack.ps1.
  4. The TV build and install: versionCode 26041072, 2026.4.1-wp136.1.
  5. Captures on the TCL: the grid with Phantom selected; with a square cover selected; the grid under the stock Remastered theme (set through run-as in scummvm.ini, backed up first and restored byte for byte).
  6. Close: fork PR, private PR, the redesign page, this WP and WORK_INDEX.md.

Exit criteria

  1. The fork commit is merged on scooby-engine. The Android build has no new warnings in the changed file.
  2. On the TCL with the TV theme, measured in a capture: the slots are 1.4 times as tall as wide; Phantom’s whole front fills its slot; the square covers sit at the slot’s bottom, centred, with ecru above them; the ring around a square cover starts at the cover’s top; the badges sit on the covers.
  3. On the TCL with the stock Remastered theme, the grid is as before: square slots, covers at the top, the ring round the whole item. scummvm.ini is byte-identical after the check.
  4. No “Missing data asset” or layout warnings in logcat from the change.
  5. The private PR with the theme, the pack and the rebuilt assets is merged.

Deliverables

Notes

Result

Drafted, pre-flighted and run on 2026-12-02 in one session (pre-flight-WP-136-2026-12-02).

How it works

Checked

  1. Build: two files synced into WP-135’s tree; grid.o recompiled with no warnings in the changed files.
  2. The TV theme at four per row, measured in the captures: every cover’s bottom is at y = 694. The square covers’ tiles are 279 × 278 px, centred in their slots, with ecru above. Phantom’s whole front fills its slot (tile 279 × 380). With Showdown selected, the ring starts just above its cover, not at the top of the slot. With Beneath a Steel Sky selected, the same. The flags and platform badges sit on the covers’ corners.
  3. The stock Remastered theme (through run-as in scummvm.ini): square slots, covers at the top, the ring round the whole item, as before. Phantom’s portrait front is narrower in its square slot than the old square crop. scummvm.ini was byte-identical to its backup afterwards (SHA-256 95FFF6A5…1334C).
  4. logcat: no “Missing data asset” and no layout warnings over three launches.
  5. Private PR merged.

Noted, not changed