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:
- WP-136 ✅: the portrait slots this packet fills.
- WP-135 ✅: the grid’s colours, the violet focus strip included.
- WP-104 (🚧): the TV app’s theme. Its open criteria don’t touch this packet.
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
- Most covers are square. Of the 85 covers in Jeff’s set
(
artwork-manifest.jsonon pCloud), every one is 512 × 512; in the TV pack only Phantom’s is portrait (512 × 717, WP-136). ScummVM’s downloadable icon packs, which load before the TV pack (WP-132 D1), are square too. - What WP-136 left (fork
origin/scooby-engine1fbc5d5439): 5:7 slots with each cover bottom-centred, so a square cover sits under a strip of ecru as tall as two sevenths of the slot. On the TV at four per row that strip is about 100 px over every square cover. - What the code has to draw it with: the slot’s height
(
_thumbnailHeight), the cover’s rectangle inGridItemWidget::drawWidget, the theme’s tile colour (kThumbnailBackground) and the focused title’s strip (kTextInversionFocuswithkFontColorGridItem, which draws the theme’sgriditem_title_focus, WP-135).
Scope
In scope
- The fork commit, brand-free. A new optional layout variable,
Globals.Grid.PlayBand, read only alongsideGlobals.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.
- The TV theme, in the private
assemble_theme.py:Grid.PlayBand = 1. - The TV build, installed over 26041072 with
adb install -r(the app’s data and games stay), and captures.
Out of scope
- What OK does. OK still opens the game’s tray (WP-118 §5, Jeff’s call on 2026-11-30); the band is a label and a focus cue, not a second control.
- Three per row, the smaller header, the remote legend and the button row, each on the redesign page’s list.
- Re-cutting the square covers as portrait fronts.
- The Windows preview and upstream submission.
Decisions
Answered by Jeff on 2026-12-02 (DECISIONS.md).
- D1, the square covers in portrait slots: keep the fixed portrait slot and put text such as “Play” below the square images. Answered: “Most of the images are square … so I feel we keep a fix portrait cell size and below the square images we have text such as ‘Play’”.
Dependencies
- The fork at
origin/scooby-engine1fbc5d5439; a worktree fromtools/New-ForkWorktree.ps1 -Branch wp-137-grid-play-band. - The private repo’s
tv-app-identity(assemble_theme.py,Build-TvAppTheme.ps1). - WSL’s Android build tree as in WP-136.
- The TCL 65Q77K over Windows
adb, on 26041072 (2026.4.1-wp136.1).
Execution
- Pre-flight, recorded in
docs/reference/pre-flight-WP-137-<date>.md. - The fork commit on
wp-137-grid-play-band. - The theme: the variable in the generated layout and
tvapp.zip. - The TV build and install: versionCode 26041073,
2026.4.1-wp137.1. - Captures on the TCL: the grid with a square cover selected; with
Phantom selected; the grid under the stock Remastered theme (set
through
run-asinscummvm.ini, backed up first and restored byte for byte). - Close: fork PR, private PR, the redesign page, this WP and
WORK_INDEX.md.
Exit criteria
- The fork commit is merged on
scooby-engine. The Android build has no new warnings in the changed files. - 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.
- On the TCL with the stock Remastered theme, the grid is as before.
scummvm.iniis byte-identical after the check. - No “Missing data asset” or layout warnings in
logcatfrom the change. - The private PR with the theme and the rebuilt
tvapp.zipis merged.
Deliverables
- Fork: one commit in
gui/(PR onbarefootbetters/scummvm). - Private:
assemble_theme.py, the regenerated layout,tvapp.zip, the captures on the redesign page. - Public: this WP, its pre-flight, the
WORK_INDEX.mdrow, theDECISIONS.mdentry. Captures that show the app name stay private.
Notes
- Leak check. The fork commit and this repo carry no identity values (the app name, its distinctive word, the package id), as in EC-015.
Result
Drafted, pre-flighted and run on 2026-12-02 in one session (pre-flight-WP-137-2026-12-02).
- Fork: one commit on
wp-137-grid-play-band, fromscooby-engine @ 1fbc5d5439:8c1a8da030,GUI: Let themes put a play band under short grid covers(gui/widgets/grid.{h,cpp}). Fork PR barefootbetters/scummvm#65, merged on 2026-12-02 asc1f2825762. - Private:
barefootbetters/scooby-engine-private#93,
merged on 2026-12-02 as
277ea98(squash): the variable in the TV theme’s layout, the rebuilttvapp.zip, and the captures on the redesign page. - The TV runs versionCode 26041073 (
2026.4.1-wp137.1), built in WSL as WP-136 and installed over 26041072 withadb install -r.
How it works
GridWidget::reflowLayout()readsGlobals.Grid.PlayBand(default 0) only when the theme setsGlobals.Grid.ThumbnailHeightPercent, into_playBand.GridItemWidget::drawWidget(), with_playBand: the cover’s rectangle is its own size plus the margin, centred at the top of the slot (a square for a missing cover). If the slot has at least a line and a margin left below it, that is the band. The tile is drawn over cover and band together; the band’s “Play” (_("Play"), bold, centred) is drawn inside the margin, throughkTextInversionFocusfor the selected entry while the grid has the focus, else in the normal text colour, greyed for a missing game.- Without the variable the code takes WP-136’s path unchanged.
Checked
- Build: two files synced into WP-136’s tree; no warnings in the changed files.
- 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.
- The stock Remastered theme (through
run-asinscummvm.ini): square slots, covers at the top, no band, as under WP-136.scummvm.iniwas byte-identical to its backup afterwards (SHA-25695FFF6A5…1334C). logcat: no “Missing data asset” and no layout warnings.- 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
- As under WP-136, the selected first-row ring meets the panel’s top border and titles are cut at two lines at four per row. Both wait for the smaller header on the redesign page’s list.