WP-137: A play band under square covers in the TV grid

Status: ✅ Done (2026-12-02), every exit criterion met. Fork PR barefootbetters/scummvm#65 merged on 2026-12-02 (merge commit c1f2825762), private PR barefootbetters/scooby-engine-private#93 the same day (squash 277ea98). The TV runs 26041073 with the play band (§Result). Decision D1 answered by Jeff on 2026-12-02 (§Decisions). Phase: 5 (polish & distribution). Depends on:

Unblocks: an even grid on the TV while most covers are square. 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-136 did. Targets generation(s): none. The grid and the theme are engine-independent. Estimated effort: half a day: the fork commit, the theme, one TV build and the checks.


Goal

The TV grid keeps its fixed portrait slots, and a square cover no longer floats at the bottom of one with ecru above it. Each cover sits at the top of its slot; the room left under a square cover is a band that reads “Play”. A whole portrait front still fills its slot. While the grid has the focus, the selected game’s band turns violet, as its title does. One brand-free fork commit lets a theme ask for the band; a theme that doesn’t draws the grid as WP-136 left it.

Background

Scope

In scope

  1. The fork commit, brand-free. A new optional layout variable, Globals.Grid.PlayBand, read only alongside Globals.Grid.ThumbnailHeightPercent. When a theme sets it to 1:
    • each cover is drawn at the top of its slot, centred across it; a game with no cover gets a square holding its title, as a cover would;
    • where a cover leaves at least a line and a margin below it, a band fills the rest of the slot. The cover and the band share one tile (kThumbnailBackground), and the band reads “Play” (translatable, bold, centred);
    • while the grid has the focus, the selected entry’s band is drawn as its focused title is (kTextInversionFocus); a missing game’s band text is greyed (kStateDisabled);
    • the badges, the demo overlay and the dimming stay on the cover.

    When a theme doesn’t set it, nothing changes from WP-136. No stock theme file changes.

  2. The TV theme, in the private assemble_theme.py: Grid.PlayBand = 1.
  3. The TV build, installed over 26041072 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-137-<date>.md.
  2. The fork commit on wp-137-grid-play-band.
  3. The theme: the variable in the generated layout and tvapp.zip.
  4. The TV build and install: versionCode 26041073, 2026.4.1-wp137.1.
  5. Captures on the TCL: the grid with a square cover selected; with Phantom 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 files.
  2. On the TCL with the TV theme, measured in a capture: every cover’s top is on one line; each square cover has a band below it reading “Play”, on the same tile; Phantom’s whole front fills its slot with no band; the selected game’s band is violet; the badges sit on the covers.
  3. On the TCL with the stock Remastered theme, the grid is as before. 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 and the rebuilt tvapp.zip is merged.

Deliverables

Notes

Result

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

How it works

Checked

  1. Build: two files synced into WP-136’s tree; no warnings in the changed files.
  2. The TV theme at four per row, measured in the captures: every tile starts at y = 306; the slots are 279 × 389 px (5:7). Beneath a Steel Sky and Showdown sit at the top of their tiles with “Play” below on the same tile; Phantom’s whole front fills its slot with no band. With Showdown selected its band is violet from y = 595 to the tile’s bottom at 694, and Beneath a Steel Sky’s is dark; selecting Beneath a Steel Sky swaps them. The flags and platform badges sit on the covers’ corners, above the band.
  3. The stock Remastered theme (through run-as in scummvm.ini): square slots, covers at the top, no band, as under WP-136. scummvm.ini was byte-identical to its backup afterwards (SHA-256 95FFF6A5…1334C).
  4. logcat: no “Missing data asset” and no layout warnings.
  5. Private PR merged.

The TV was asleep when the captures started (the first set came back black); it was woken with KEYCODE_WAKEUP for the captures, then dropped off adb afterwards, most likely asleep again.

Noted, not changed