WP-104: TV app theme and branding — the studio’s own look on the ScummVM GUI

Status: 🚧 Executed 2026-11-28; three criteria open (§Result). Fork PR barefootbetters/scummvm#36 (7 mechanism commits) merged on 2026-11-29 (merge commit 27aa9f9a71); the private identity PR merged the same day. Criterion 10 (the remote’s arrows) met by WP-118 on 2026-11-30. Open: the rest of Jeff’s 3 m check (4: Help and a controller), the licenses screen (7), and the splash, which this TV never draws (3). Drafted 2026-11-28. D1–D7 answered 2026-11-28 (§Decisions). Pre-flight READY 2026-11-28, with the WP-085 bypass noted; execution prompt session-WP-104-2026-11-28; fork worktree claimed (wp-104-tv-reskin). Research done in the drafting session (the fork read at scooby-engine 1604799960; Google’s TV and Play pages and ScummVM’s policies checked 2026-11-28). The requirements, asset list and art brief are kept privately, because they carry the product name (2026-11-26 naming decision). Phase: 5 (polish and distribution). Depends on: WP-085 (the app shell and its build-time identity: fork commit 99d611a9d8); D1–D7, answered 2026-11-28 (the app name tracked privately). Unblocks: the Play release’s art and listing (WP-084 scope 10); the remote-first focus work (follow-up packet, see §Out of scope). Companion EC: EC-015. Pre-flight required: Yes. It changes the fork outside engines/terraglyph/ (build configuration, Android resources, the GUI’s defaults and strings). Targets generation(s): none. No engine code changes. Estimated effort: about 3–4 days of fork and build work, plus the art. The must-have art is made by hand in vector during execution, from the studio’s mark and the private asset list (pre-flight Q2); an artist may replace any of it later under the same file names. Pre-flight refinements: for Android, scope 1.1 and 1.2 are done with app assets (tvAppAssetsDir: the theme zip and a defaults file) instead of a make variable, plus a hasDefault guard in gui/gui-manager.cpp; the Windows hook waits with D5 (pre-flight engineering calls 1–3).


Goal

Give the TV app its own look and name on every screen a player sees, from the TV home row to the in-game menu, without putting branded files in the public fork. Done means a sideloaded build on the TCL 65Q77K shows the studio’s icon, banner, splash, theme, fonts and wording, keeps ScummVM’s attribution and licenses in About, and builds plain ScummVM when the identity inputs are absent.

Background

Scope

In scope

  1. Fork mechanism commits (brand-free; branch wp-104-tv-reskin off a freshly fetched origin/scooby-engine):
    1. An extra-themes hook: a make variable that adds a theme zip from a path outside the tree to the shipped themes (Android assets; Windows and Linux when they come).
    2. A build-time default theme id (falls back to scummremastered).
    3. Android resource overlay: tvAppResDir moves from main’s res.srcDirs to an overlay source set, so a packaged build can override the splash logo, colorPrimary / colorBackground and strings by name (D4). D4 was approved on the condition that a test build proves this works; if it doesn’t, the packet stops and goes back to Jeff rather than renaming resources in the fork.
    4. A TV default for gui_scale, if the device check (step 4) shows the default is too small at 3 m.
    5. About: an optional build-provided header block (name, version, studio, support and source links) above ScummVM’s unchanged attribution.
    6. The player-facing strings on the TV path (launcher buttons, the in-game menu, the import errors, help) take the app name from the build. Developer and options text stay as is. Required attribution, copyright notices and licensing information stay unchanged (D6).
    7. TV builds open the library in the list view by default, reversing WP-085’s grid default on TV, until the D-pad focus follow-up makes the grid work reliably with the remote (D7). A player who picks the grid keeps it.
  2. The theme, built outside the fork from the private asset list: palette, draw steps, layout sizes for 3 m, logos (SVG), cursors, toggles, glyphs, Raleway in the four text slots with Noto kept for non-Latin languages. Theme id and name from the private record.
  3. Android identity art in the private identity folder: adaptive and legacy icons, the TV banner in five densities (with the app name, TV-BN), the splash lockup and colours (after 1.3).
  4. Device check on the TCL 65Q77K: wm density and wm size recorded; every screen (TV row, splash, empty library, add game, library, options, in-game menu, save/load, About, Help) captured and checked at about 3 m. Text legible, nothing cut off at the edges.
  5. Licenses: About and the licenses screen keep ScummVM’s copyright, credits, GPL text and source link; add the modification notice, the not-affiliated line and the OFL texts.
  6. ScummVM team questions drafted for Jeff to send (name use, notice, credit wording, source format). Nothing is sent by this packet.

Out of scope

Decisions for Jeff

# Decision Recommendation
D1 The final app name. It goes into the banner, logos and listing Answered 2026-11-28; tracked privately. The package id is unchanged
D2 Dark or light theme base Answered 2026-11-28: dark, as recommended. Deep violet and near-black surfaces, off-white text, apple-green selection highlight
D3 Where art masters and build files live Answered 2026-11-28, as recommended. Original artwork on pCloud (the studio’s brand folder); build-ready assets in the private repository, beside WP-085’s identity record
D4 Overlay source set for tvAppResDir (scope 1.3) vs. renaming resources in the fork Answered 2026-11-28: overlay, as recommended, subject to a successful test build. Avoid unnecessary changes to the public fork
D5 Windows / Pi branding in this packet Answered 2026-11-28: TV first. Windows and Raspberry Pi branding deferred
D6 How far to replace “ScummVM” in UI strings Answered 2026-11-28, as recommended with one clarification: replace ScummVM branding in the player experience, and preserve the required attribution, copyright notices and licensing information
D7 TV default launcher view until focus navigation exists Answered 2026-11-28: list view, temporarily. Restore the grid as the TV default once D-pad navigation works reliably. Closed 2026-11-30 by WP-118 D5: the grid is the TV default again

Dependencies

Execution

  1. Pre-flight (pre-flight-WP-104-<date>.md) and EC-015; claim the number (no WP-104 packet, branch or PR elsewhere).
  2. Mechanism commits (scope 1), one per concern, each building plain ScummVM when its inputs are unset. Check: an empty-identity build is byte-identical in assets to today’s, apart from expected build metadata.
  3. Theme (scope 2): copy Remastered and the common layout, apply the palette and sizes, drop in the art, scummtheme.py make, load it with --themepath on Windows first, then on the TV.
  4. Device check (scope 4): record density, size and safe area; tune layout sizes and gui_scale; capture every screen.
  5. Android art (scope 3) into the identity folder; rebuild; confirm with aapt2 dump badging that the label, icon and banner resolve to the injected resources.
  6. Licenses and About (scope 5); the outreach draft (scope 6).
  7. Result here, with captures referenced from the run; fork PR into scooby-engine.

Exit criteria

  1. D1–D7 answered and recorded (2026-11-28; DECISIONS).
  2. With the identity inputs unset, the fork builds plain ScummVM: id, name, icon, banner, splash, theme and About unchanged. aapt2 dump badging: org.scummvm.scummvm.debug, “ScummVM (debug)”, banner leanback_icon; no tvapp* asset; every asset and resource file byte-identical to the previous build apart from that build’s two identity files (§Result).
  3. Partly. With them set, the TCL shows the studio’s icon and the app’s label in Google TV’s “Your apps” row, and the brand theme is the default on first run (captures). The banner is in the APK (aapt2), but Google TV’s rows show round icons, not banners. Open: the splash colour and lockup are in the APK but this TV never draws them (Android 14: black frames, then the GUI, with or without the Android 12+ splash attribute).
  4. Partly. Every scope-4 screen is captured, inside the safe area, at a measured text size (§Result). Jeff at 3 m with the stock remote (2026-11-28): the launcher is readable with nothing cut off, the options are readable, and About’s top part is readable (§Result). WP-118 (2026-11-30): Jeff walked the grid, the tray, Game Options, Global Options, the list view, Showdown and its in-game menu with the stock remote on build 26041040: “Everything worked.” Save and Load were checked with adb’s D-pad, not by Jeff (WP-118 §Result). Open: Help at 3 m, and a controller.
  5. Raleway renders Latin text and Japanese renders through Noto (capture), with FreeType in the build: the build machine needs FreeType 2.13.3 for armeabi-v7a, which the smart-TV guide doesn’t list yet. Without it the GUI uses ScummVM’s bitmap fonts and non-Latin names show as boxes (capture).
  6. About shows the app’s header, the modification notice and the source link, then ScummVM’s version, copyright, GPL text and credits, unchanged (whole scroll captured).
  7. Open. ScummVM has no in-app licenses screen: COPYING, COPYRIGHT, AUTHORS and LICENSES/* ship in the APK’s assets/doc/, and Raleway’s OFL in its assets, but nothing shows them. A licenses screen is new UI outside this packet’s scope lock.
  8. No branded file (name, logo, icon, banner, theme) is in the fork; the 7 commits are brand-free and touch no engine file. git log -p origin/scooby-engine..HEAD grepped for the private name, its distinctive word and the package id: the only hits are the studio’s git author line, which every fork commit carries.
  9. The ScummVM team questions are drafted for Jeff (private identity folder). Nothing was sent.
  10. Met by WP-118 (2026-11-30). With no saved choice, a fresh launch opens the list view, and a switch to the grid is kept across a relaunch (scummvm.ini checked, then restored byte-identical). Not met: the remote’s arrows don’t move the list selection. Jeff: “arrows move the pointer, not the highlight”. The Android backend binds the D-pad to the virtual mouse in every GUI context (android.cpp:772-785), so the list view doesn’t give the remote arrow navigation either. That is the D-pad focus packet’s to fix, for both views. WP-118 (2026-11-29): fixed in fork PR barefootbetters/scummvm#46, on the TV as versionCode 26041036. With gui_dpad_focus=true in tvapp.ini, the D-pad moves a visible focus in both views and in the dialogs; OK activates and BACK closes. Checked with adb’s D-pad (WP-118 §Result). Jeff, 2026-11-30, with the stock remote on build 26041040, after a walk-through of the grid, the list view and the dialogs: “Everything worked.” WP-118 D5 applied: the TV app opens on the grid again, and OK in it opens the tray.
  11. The D4 overlay overrides the splash logo, colorPrimary and a string by name, with no resource renamed in the fork (aapt2 dump resources; the logo’s bytes match the overlay’s file).

Deliverables

Result

Executed 2026-11-28 through EC-015 on the TCL 65Q77K (Android 14, wm density 320, 1920×1080), Windows adb pinned to one serial, builds in WSL (armeabi-v7a, terraglyph,sky, libpng). Every device claim below has a capture from this run; the captures stay local because they show the app’s name and id.

Fork: 7 mechanism commits (barefootbetters/scummvm#36, off scooby-engine 72eb81926d, merged on 2026-11-29 as 27aa9f9a71)

Commit What
03f0d4edb9 ANDROID tvAppResDir moves to the debug/release source sets (they override main); new optional tvAppAssetsDir
d6d14e7500 ANDROID initBackend() registers the [defaults] keys of an asset tvapp.ini; one log line names them
b32a14a8e5 ANDROID Drops the grid default: list view again (D7)
4208e10800 GUI gui_theme registered only if no default exists
7674026c8a GUI Optional tvapp-about.txt above About’s unchanged notices
eb33de26d4 GUI app_name in the TV-path strings (below)
de5c7d9597 GUI A registered gui_scale default now applies

Two differ from the pre-flight’s five: D7 is its own commit (one concern per commit), and the gui_scale commit is new. gui-manager.cpp applied gui_scale only when ConfMan.hasKey() was true, and hasKey() ignores registered defaults, so engineering call 2’s packaged scale did nothing until it was fixed. Both stay in the allowlisted files. android.h wasn’t needed. The About helper is a file-local function, because gui/about.h isn’t on the allowlist.

The theme ships at the APK’s asset root, not under assets/assets/. The Java side extracts assets/assets/ to app storage only when MD5SUMS changes, and MD5SUMS doesn’t cover tvAppAssetsDir, so an extracted copy could go stale between builds. Root assets are read straight from the APK by AndroidAssetArchive, and ThemeEngine lists tvapp.zip from there.

Strings that name the app when app_name is set (new message ids, English until translated; without app_name the old strings and translations are used): the launcher’s version line (“<app>, powered by ScummVM <version>”), the in-game menu’s version line (“Powered by ScummVM <version>”, under the app’s logo) and title, the Quit, About, Global Options and Download Games tooltips, “could not find any engine…”, “couldn’t open the specified directory!”, “could not find any game in the specified directory!”, and the Android “Have you given … access rights” hint. Options text, Help and About’s attribution are unchanged (D6).

Plain build (criterion 2)

-PtvAppId= -PtvAppLabel= -PtvAppResDir= -PtvAppAssetsDir=: org.scummvm.scummvm.debug, versionCode 26041000, “ScummVM (debug)”, icon mipmap-anydpi-v26/scummvm.xml, banner leanback_icon; no tvapp* asset. All 179 asset and resource files are byte-identical (md5) to the previous tree’s build, which had 181: the extra two are its tvapp_icon and tvapp_banner.

D4 overlay (criteria 11, 3)

A scratch overlay (a flat-colour drawable-xhdpi/scummvm_logo.png, colorPrimary, the app_desc string, plus the identity icon and banner) built with no duplicate-resource error. aapt2 dump resources: colorPrimary #ff1e5aff (ScummVM #ffcc6600), app_desc “D4 overlay test string” in the default locale (translations still ScummVM’s), and the xhdpi scummvm_logo bytes equal to the overlay file. On the TV the splash is never drawn: a screenrecord of each launch shows the home screen, four black frames and then the GUI, with ScummVM’s resources, the overlay’s, and the overlay plus android:windowSplashScreenBackground in values-v31. SplashActivity finishes at once, and Android 14 replaces the legacy windowBackground splash with its own starting window. So the splash lockup and colours (C-04, C-05) ship but aren’t visible on this TV.

Theme, art and defaults (private identity folder)

Device measurements (final build, versionCode 26041017)

  Remastered, scale ×1.67 (baseline) Theme, ×2.33 (gui_scale 140)
List capitals 13 px 18 px (bitmap font), 20 px (Raleway, FreeType build)
List row pitch 21 px 28 px (bitmap), 37 px (Raleway)
Launcher edges (left/right/top/bottom) — 98 / 97 / 56 / 57 px
Grid view edges — 98 / 85 / 56 / 56 px (right: the scrollbar’s shadow)
Options, save/load full screen at ×2.33 options 740×410 units, centred; save/load inset 42 (98 / 87 / 56 / 57 px)

Targets: 96 px sides and 54 px top and bottom (48/27 dp). Getting there took theme-only changes: launcher padding, hiding the second Help button (the “?” stays), a 72-unit logo row, a smaller options dialog, and wider save/load insets. The launcher’s bottom padding needs about 28 units more than the gap it produces; stock ScummVM shows the same offset.

Fonts need FreeType. The fork’s Android build had none (#undef USE_FREETYPE2): the theme’s TTFs were ignored, and Cyrillic, Greek and CJK language names showed as boxes. FreeType 2.13.3 built static for armeabi-v7a (API 16, optional dependencies off) and found through PKG_CONFIG_LIBDIR fixes both: Raleway renders, Cyrillic renders, and Japanese renders through Noto. The APK then also carries fonts.dat and fonts-cjk.dat: 60.6 MB instead of 15.6 MB.

Jeff’s check at 3 m

Jeff, 2026-11-28, from the couch with the TCL’s remote, on the build with the bitmap font (26041016), quoted: “arrows move the pointer, not the highlight. 2) yes can read, nothing cut off, 3) yes readable, 4) yes top part is my name - needs url https://studio.barefootbetters.com and request to sign up to the newsletter and email list. In the scooby doo game showdown - the tv remote isn’t responding at the sign in screen.”

Open (WP stays 🚧)

  1. Criterion 4: Help at 3 m, and a controller. (The in-game menu was checked in WP-118, Jeff on 2026-11-30.)
  2. Criterion 7: an in-app licenses screen (new UI; a follow-up).
  3. Criterion 3’s splash: no app splash is visible on Android 14 TV.

Criterion 10 (the remote’s arrows) was met by WP-118 on 2026-11-30.

Notes