WP-135: The TV grid’s own colours

Status: ✅ Done (2026-12-02), every exit criterion met. Fork PR barefootbetters/scummvm#63 merged on 2026-12-02 (merge commit 0af756551f), private PR barefootbetters/scooby-engine-private#85 the same day (squash 13378fc). The TV runs 26041071 with the ecru and violet grid (§Result). Decisions D1 and D2 answered by Jeff on 2026-12-02 (§Decisions). Phase: 5 (polish & distribution). Depends on:

Unblocks: a TV launcher whose library stands apart from the app’s dark chrome, ahead of the first store release (WP-084). Companion EC: — (the steps fit in §Execution). Pre-flight: required. The packet adds a commit to the fork’s shared GUI code (gui/, outside engines/terraglyph/) and changes what the TV build packages, as WP-132 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 gets colours of its own. The library panel is ecru, the titles under the covers are dark, and the selected game has a violet ring and a violet title bar with light text. The rest of the app keeps today’s look. One brand-free fork commit lets a theme colour the grid apart from every other list; the TV app’s theme then sets those colours.

Background

Scope

In scope

  1. The fork commit (D1), brand-free. The theme engine gets four optional entries, each with a fallback to what is drawn today:

    New entry Kind Used for When the theme doesn’t define it
    grid_bg drawdata the grid’s panel widget_default
    griditem_title_focus drawdata the selected title’s bar while the grid has focus text_selection_focus
    color_griditem text colour the titles under the covers color_normal
    color_griditem_inverted text colour the selected title on its bar color_normal_inverted

    GridWidget draws its panel with the new background type, and GridItemWidget draws valid titles with the new font colour. Unreachable games keep kFontColorAlternate. No stock theme file changes.

  2. The TV theme (D2), in the private repo’s assemble_theme.py: grid_bg and griditem_bg in ecru #D7C481 with a 1-unit violet border, the ring in griditem_hover_bg and the bar in griditem_title_focus in violet #592E59, color_griditem ink #2A1A2A, color_griditem_inverted off-white #FAFAFA. The ring keeps its 3-unit stroke. Then Build-TvAppTheme.ps1 rebuilds assets/tvapp.zip.
  3. The TV build, installed over 26041070 with adb install -r (the app’s data, games and the WP-134 packages stay), and captures.

Out of scope

Decisions

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

Dependencies

Execution

  1. Pre-flight, recorded in docs/reference/pre-flight-WP-135-<date>.md.
  2. The fork commit, one commit on wp-135-grid-colours, with the fallbacks above.
  3. The theme: assemble_theme.py changes, Build-TvAppTheme.ps1, the new tvapp_gfx.stx checked for the four entries.
  4. The TV build and install: versionCode 26041071, 2026.4.1-wp135.1.
  5. Captures on the TCL: the grid with a selection; the list view; 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: the grid panel and the space around unselected items are ecru; unselected titles are ink; the selected cover has a violet ring and a violet title bar with off-white text.
  3. On the TCL, the list view’s frame and selection are unchanged from 26041070 (violet frame, apple-green focused row).
  4. On the TCL with the stock Remastered theme, which defines none of the new entries, the grid draws its panel, titles and selection as before. scummvm.ini is byte-identical after the check.
  5. Text pairs in the grid are at least 4.5:1 and the ring at least 3:1, computed from the capture’s pixels.
  6. The private PR with the theme change 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-135-2026-12-02).

How it works

Checked

  1. Build: the Android build (armeabi-v7a, release) recompiled ThemeEngine.o, ThemeParser.o and grid.o with no warnings in the changed files.
  2. The TV theme, sampled from a capture on the TCL: panel ecru #D7C481; unselected titles ink #2A1A2A; the selected cover’s ring violet #592E59, 6 px on the 1080-line frame; its title bar violet with off-white #FAFAFA text.
  3. The list view is unchanged from 26041070: violet frame, apple-green focused row.
  4. The stock Remastered theme (set through run-as in scummvm.ini): the grid draws Remastered’s cream panel, black titles and green title bar, as before. scummvm.ini was byte-identical to its backup afterwards (SHA-256 95FFF6A5…1334C).
  5. Contrast, from the capture’s pixels: ink on ecru 9.46:1, off-white on violet 10.27:1, the ring on ecru 6.18:1.
  6. No “Missing data asset” warnings in logcat over four launches, with either theme.

Noted, not changed