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
- The pattern exists. WP-085 injects the app’s id, label, launcher icon
and TV banner from Gradle properties (
tvAppId,tvAppLabel,tvAppResDir;dists/android/build.gradle:16-41). The public fork keeps ScummVM’s id, name and art as defaults (WP-085 pre-flight Q1). This packet extends the same idea to the GUI theme, the splash, colours and strings. - What a theme can change (no code): the palette, every widget’s look,
layout sizes, the launcher and menu logos (
logo.bmp/logo_small.bmp, which may point at SVGs), cursors, checkboxes and radios, small glyphs, and the GUI fonts. TTFs inside the theme zip are found before the shared fonts archive (gui/ThemeEngine.cpp:1816-1845).- Widgets are vector draw steps (
gui/ThemeParser.cpp:463-483), so there are no 9-slice frames. - BMPs use
#FF00FFas transparent, PNGs keep alpha, and SVGs are rasterised at the GUI scale (ThemeEngine.cpp:639-716).
- Widgets are vector draw steps (
- What needs code:
- shipping a theme zip from outside the tree (
Makefile.common:403,backends/platform/android/android.mk:52-54); - making it the default (
gui/gui-manager.cpp:88); - the Android splash and colours (
res/drawable/splash.xml,res/values/colors.xml).tvAppResDircan’t override these, because it is a secondres.srcDirsentry in the same source set; - “ScummVM” in UI strings (≥ 24 in
gui/); - the About header (
gui/about.cpp:69-227); - the window caption (
base/main.cpp:391); - a heading font slot: the theme has five slots and none is a heading
(
ThemeParser.cpp:39-43).
- shipping a theme zip from outside the tree (
- TV gaps found (need code, not art):
- The grid launcher, the Android default since WP-085, has no key handling;
only
ListWidgettakes the arrows (gui/widgets/list.cpp:576). - Dialog buttons can’t take focus, and OK clicks at the pointer
(
gui/gui-manager.cpp:164-167,backends/platform/android/android.cpp:759). - There’s no focus draw state.
- These go to a follow-up packet; this packet only draws the focus look once it exists.
- The grid launcher, the Android default since WP-085, has no key handling;
only
- Licensing. ScummVM is GPLv3+ with no §7 additional terms (
COPYING).- A rebranded binary keeps the license notices, says it’s modified (§5(a)), shows Appropriate Legal Notices in its UI (§5(d)), and offers the corresponding source (§6). The build-time identity inputs count as part of that source.
- Raleway and Playfair Display are SIL OFL 1.1 and may be bundled with their license files.
- AI art stays out of upstream. ScummVM’s
AI-GUIDELINES.md(fork root, line 69) bars AI-made media assets such as logos and icons. Branded files never enter the fork here. The fork commits are brand-free mechanism, kept separate from engine commits and written by hand.
Scope
In scope
- Fork mechanism commits (brand-free; branch
wp-104-tv-reskinoff a freshly fetchedorigin/scooby-engine):- 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).
- A build-time default theme id (falls back to
scummremastered). - Android resource overlay:
tvAppResDirmoves frommain’sres.srcDirsto an overlay source set, so a packaged build can override the splash logo,colorPrimary/colorBackgroundand 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. - A TV default for
gui_scale, if the device check (step 4) shows the default is too small at 3 m. - About: an optional build-provided header block (name, version, studio, support and source links) above ScummVM’s unchanged attribution.
- 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).
- 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.
- 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.
- 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).
- Device check on the TCL 65Q77K:
wm densityandwm sizerecorded; 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. - 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.
- ScummVM team questions drafted for Jeff to send (name use, notice, credit wording, source format). Nothing is sent by this packet.
Out of scope
- D-pad focus navigation (grid keys, button focus, focus state, something-focused-at-launch): a follow-up packet. Until it lands, TV builds default to the list view (D7, scope 1.7); that packet restores the grid.
- Guided import and the empty-library welcome: new flows; they build on WP-085’s open import route.
- The simplified options set for families.
- Play listing graphics and screenshots: WP-084 scope 10, using this packet’s art.
- Windows and Raspberry Pi branding (exe icon, version info, installer, desktop entry): later, unless D5 says otherwise.
- Per-game cover tiles: licensed game art, per title.
- Any upstream PR.
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
- WP-085 🚧 for the shell: milestones 1, 3 and 4 are verified and merged
(
0d5a69c769). Its open import criterion doesn’t block this packet. - D1–D7 ✅ (2026-11-28); D4 holds only if the test build in step 2 proves the overlay.
- The WP-085 build environment (WSL, NDK 23.2.8568313, libpng for the grid), per the smart-TV guide.
- The TCL 65Q77K over
adb, the stock remote, and a Bluetooth controller.
Execution
- Pre-flight (
pre-flight-WP-104-<date>.md) and EC-015; claim the number (noWP-104packet, branch or PR elsewhere). - 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.
- Theme (scope 2): copy Remastered and the common layout, apply the
palette and sizes, drop in the art,
scummtheme.py make, load it with--themepathon Windows first, then on the TV. - Device check (scope 4): record density, size and safe area; tune
layout sizes and
gui_scale; capture every screen. - Android art (scope 3) into the identity folder; rebuild; confirm with
aapt2 dump badgingthat the label, icon and banner resolve to the injected resources. - Licenses and About (scope 5); the outreach draft (scope 6).
- Result here, with captures referenced from the run; fork PR into
scooby-engine.
Exit criteria
- D1–D7 answered and recorded (2026-11-28; DECISIONS).
- 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)”, bannerleanback_icon; notvapp*asset; every asset and resource file byte-identical to the previous build apart from that build’s two identity files (§Result). - 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). - 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.
- 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).
- 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).
- Open. ScummVM has no in-app licenses screen:
COPYING,COPYRIGHT,AUTHORSandLICENSES/*ship in the APK’sassets/doc/, and Raleway’s OFL in its assets, but nothing shows them. A licenses screen is new UI outside this packet’s scope lock. - 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..HEADgrepped 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. - The ScummVM team questions are drafted for Jeff (private identity folder). Nothing was sent.
- 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.inichecked, 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. Withgui_dpad_focus=trueintvapp.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. - The D4 overlay overrides the splash logo,
colorPrimaryand a string by name, with no resource renamed in the fork (aapt2 dump resources; the logo’s bytes match the overlay’s file).
Deliverables
- Fork branch and PR: the mechanism commits only.
- The theme folder and Android art, built from the private asset list (not in this repo).
pre-flight-WP-104-<date>.md, EC-015, this packet’s §Result.- Never committed: the TV’s captures that show its address or the app id.
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)
- Theme
tvapp(Remastered and the common layouts, flattened): the D2 palette, rounder buttons, an ink-to-violet library background, ink text on the apple-green selection and hovered buttons, Raleway in the four text slots with Noto kept, and the studio’s SVG logos, cursor and toggles. Built withscummtheme.py make. Loaded on Windows with--themepath: no parser error, no builtin fallback. - Art, by hand in SVG from the studio’s mark with Playfair Display and Raleway, exported with Inkscape’s CLI: the launcher and menu lockups, the cursor, checkboxes and radios, the adaptive and legacy icons, the banner in five densities, the splash lockup in five sizes, the brand colours. No image generator.
- Defaults (
tvapp.ini): the theme,gui_scale140 and the app name. Logcat on every launch:Packaged defaults registered from tvapp.ini: gui_theme, gui_scale, app_name. The GUI tab shows the theme by name and “140% - Custom”.
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.”
- About: done in the identity folder, not the fork: the header now has the studio’s URL and a highlighted line asking players to sign up for the newsletter and email list (build 26041019, captured).
- Showdown’s sign-in screen: the remote’s D-pad doesn’t move the game’s
pointer there.
adb-injected D-pad presses don’t either, while the same presses move the pointer in the launcher. No engine or input file is part of this packet; it’s a follow-up (below).
Open (WP stays 🚧)
- Criterion 4: Help at 3 m, and a controller. (The in-game menu was checked in WP-118, Jeff on 2026-11-30.)
- Criterion 7: an in-app licenses screen (new UI; a follow-up).
- 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
- Follow-ups found in execution (not in this packet’s scope lock):
- The smart-TV guide needs the FreeType build step (like libpng); its
allowlisted edit here covers only
tvAppAssetsDir. - Help is ScummVM’s own text (“ScummVM at a Glance”, touch-first), and
its links are hard-coded pure blue (
graphics/macgui/mactext-md.cpp), poor on the dark theme. - Other player-facing “ScummVM” strings: the Android browser’s
“ScummVM data (Internal/External)” (
backends/fs/android), the “newly supported… our bugtracker” warning, and translations that put the name into a button label (Japanese About: “ScummVMについて”). - The grid view opens the touch keyboard on launch (its search field takes focus): one more item for the D-pad focus packet.
- D7’s premise doesn’t hold on the TV: the list view gets no arrow navigation either, because the Android backend maps the D-pad to the virtual mouse in the GUI. The D-pad focus packet has to cover both views.
- In Showdown, the remote’s D-pad doesn’t reach the game’s pointer at
the sign-in screen (Jeff; reproduced with
adb). An input follow-up, outside this packet. - The ScummVM team questions went into the private identity folder,
not
scummvm-upstream-outreach.mdas EC-015 said: that file isn’t on the pre-flight’s private allowlist.
- The smart-TV guide needs the FreeType build step (like libpng); its
allowlisted edit here covers only
- Evidence discipline. Every device claim comes from a run that happened and was captured (DECISIONS 2026-11-21).
- Public/private boundary. This packet names no product, price or launch date, and it doesn’t link the private pages.
- Fork maintenance. Each mechanism commit should be small enough to offer upstream later. Anything offered upstream is rewritten by a human under ScummVM’s AI guidelines, with no AI-made art.
- Numbering. Took 104 because WP-102 (the wizard’s library) and WP-103
(the maze centre) were taken while this was drafted (checked 2026-11-28: no
WP-104packet onmain, and no branch or PR here or in the fork).