Pocket Scope
Dark phosphor instrument panel with green and warm-gold accents, subtle spectrum-bar Home and Now Playing backgrounds, a dotted list tile, and a custom Music icon.
Theme packs · format version 2
A .gtheme pack changes colors, backgrounds, and icons. Build or preview a pack offline, then copy it to your ECHO over USB. Select a screenshot to see it at full size.
A theme pack can change every menu color, supply custom landscape and portrait backgrounds, tile list screens, and replace Home and status icons—without touching your firmware.
Both example packs below are original CC0-1.0 designs included in the Gnarlyr repository ↗ and bundled as demos inside Gnarlyr Companion. Screenshots use Gnarlyr’s screen renderer with sample music.
Dark phosphor instrument panel with green and warm-gold accents, subtle spectrum-bar Home and Now Playing backgrounds, a dotted list tile, and a custom Music icon.
Warm grey surfaces, navy title bars, and beveled pixel window chrome evoking late-1990s desktops—built on Gnarlyr’s light classic base.
Settings → Display & text → Theme
Highlighting any custom pack in Settings → Display & text → Theme previews its palette and artwork immediately. Press Play to save it, or Back to return to your previous look.
If an installed pack is ever removed or damaged, Gnarlyr falls back cleanly to a built-in theme.
Step 1 of 5
Every theme pack is compiled from one ordinary folder on your computer containing a manifest (theme.json or theme.toml) and optional PNG images.
The fastest way to begin is to copy examples/themes/pocket-scope ↗ or examples/themes/desktop-98 ↗, generate a fresh UUID for id, and customize the colors and PNGs.
my-theme/
├── theme.json # or theme.toml
├── home-landscape.png # 480×222 opaque PNG (optional)
├── home-portrait.png # 222×480 opaque PNG (optional)
├── now-playing-landscape.png # 480×222 opaque PNG, indexed codec (optional)
├── list-tile.png # 1–64 px repeating tile, opaque PNG (optional)
└── music-icon.png # 20×20 PNG with optional transparency (optional)
{
"id": "generate-your-own-uuid-v4-here",
"name": "Midnight Tape",
"author": "Your name",
"version": "1.0.0",
"licence": "CC0-1.0",
"homepage": "",
"gallery": "",
"base": "graphite",
"horizon": false,
"header_rule": true,
"codec": "indexed",
"dither": "none",
"palette": {
"background": "#12151f",
"text": "#eef1f8",
"text_secondary": "#a9b3c9",
"text_tertiary": "#8792ab",
"selection_background": "#283454",
"selection_top": "#4c67a8",
"selection_shine": "#7fa2f5",
"selection_text": "#ffffff",
"header_background": "#1d253b",
"header_top": "#4c67a8",
"header_text": "#ffffff",
"divider": "#343e59",
"scrollbar_thumb": "#7fa2f5",
"danger": "#f27a74",
"success": "#8ae6a4",
"chevron": "#a9b3c9",
"accent": "#7fa2f5",
"accent_alt": "#f5b87f",
"backdrop_top": "#12151f",
"backdrop_bottom": "#192033"
},
"assets": [
{ "slot": "home", "file": "home-landscape.png", "orientation": "landscape" },
{ "slot": "now_playing", "file": "now-playing-landscape.png", "orientation": "landscape", "codec": "indexed" },
{ "slot": "list", "file": "list-tile.png", "orientation": "any" },
{ "slot": "icon_music", "file": "music-icon.png", "orientation": "any" }
]
}
You can omit assets (or leave it empty) for a pure palette-only theme. Generate a unique UUID v4 with uuidgen on macOS/Linux or python3 -c "import uuid; print(uuid.uuid4())", and keep that same id whenever you publish newer versions of the same theme.
| Field | Details |
|---|---|
id | Non-zero UUID identifying your theme across updates. |
name, author | UTF-8 strings, up to 31 bytes each. Shown in Settings → Display & text → Theme. |
version | Numeric major.minor.patch (each 0–65535, no leading zeros). |
licence | License identifier such as CC0-1.0, MIT, or CC-BY-4.0 (up to 63 UTF-8 bytes). |
homepage, gallery | Optional https:// URLs (up to 127 bytes each), or empty string "". |
base | Built-in fallback theme: graphite, neon, sunset, glass, or classic. |
horizon, header_rule | Booleans controlling the wireframe horizon backdrop and the 1 px line beneath the top status bar. |
codec, dither | Default image codec (indexed or lossless) and palette dithering (none or floyd). Individual assets can override both. |
Step 2 of 5
Every pack supplies all 20 color roles as #RRGGBB hex strings. The builder converts them to the ECHO’s 16-bit RGB565 display format.
| Role | Where it appears |
|---|---|
background | Main screen surface behind lists, Home, and Now Playing. |
text, text_secondary, text_tertiary | Primary labels, artist/album lines, and muted timestamps or hints. |
header_background, header_top, header_text | Top status bar fill, top edge highlight, and screen title/icons. |
selection_background, selection_top, selection_shine, selection_text | Highlighted menu row fill, top bevel/edge, shine accent, and active row label. |
divider, scrollbar_thumb, chevron | Hairline separators, right-hand scroll indicator, and list arrows. |
accent, accent_alt | Progress bars, active controls, VU/spectrum highlights, and secondary flourishes. |
success, danger | Confirmations/charging indicators and low-battery or destructive warnings. |
backdrop_top, backdrop_bottom | Vertical gradient stops used behind screens that draw a gradient backdrop. |
Automatic readability check: The builder checks contrast for primary text, secondary text, selected rows, and header text against their backgrounds. Pairs below 4.5:1 trigger a low-contrast warning in Companion and on the player, though the pack still builds and runs.
Step 3 of 5
Add PNGs for any screen or icon you want to customize. Any slot you leave out uses Gnarlyr’s built-in drawing with your theme’s palette.
| Slot | Dimensions | Alpha & codec |
|---|---|---|
home |
480×222 (landscape)222×480 (portrait) |
Opaque only. indexed or lossless. |
now_playing |
480×222 (landscape)222×480 (portrait) |
Opaque only. indexed required—lossless is refused because Now Playing redraws during playback. |
list |
Full screen (480×222 / 222×480) or repeating tile (1–64 × 1–64) |
Opaque only. indexed or lossless. Tiles work across any orientation ("orientation": "any"). |
splash |
480×222 (landscape)222×480 (portrait) |
Opaque only. indexed or lossless. |
icon_<name> |
20×20 (large menu icons)14×14 (small status icons)9×14 (narrow status icons) |
Transparency supported (quantized to 4-bit alpha). indexed or lossless. Optional text_size (small, medium, large, any). |
cassette_label |
160×48 |
Reserved in format v2; accepted by the builder, not yet drawn by the player. |
indexed by default. Indexed assets hold up to 256 colors, compress tightly, decode fast, and are required for now_playing. Set "dither": "floyd" on photographic or smooth-gradient PNGs if you want Floyd–Steinberg dithering, or keep "none" for crisp pixel art.lossless only when exact RGB565 pixels matter. Lossless assets skip palette quantization on home, list, splash, and icons, at the cost of larger files..gtheme file can hold up to 64 assets and up to 2 MiB total.Large menu icons (20×20):
icon_music icon_audiobook icon_podcast icon_now_playing icon_mixtape icon_audio icon_settings icon_cover_flow icon_artist icon_album_artist icon_album icon_genre icon_folder icon_song icon_playlist icon_favorite icon_shuffle icon_repeat icon_display icon_theme icon_power icon_sleep icon_timeout icon_controls icon_start icon_rescan icon_diagnostics icon_gain icon_jack icon_usb icon_bluetooth icon_key_plus icon_key_minus icon_key_play icon_key_menu icon_disc icon_hub icon_search icon_computer icon_info icon_tag icon_hide icon_delete icon_globe
Small status icons (14×14):
icon_play icon_pause icon_next icon_previous icon_playing icon_queue icon_speaker icon_album_small icon_shuffle_small icon_logo
Narrow status icons (9×14):
icon_bolt icon_bluetooth_small icon_lock icon_song_small icon_plug icon_chevron
Step 4 of 5
You can compile and inspect version 2 .gtheme packs right inside Gnarlyr Companion—no command line required—or from a firmware source checkout.
.gtheme pack.From the root of a Gnarlyr source checkout ↗ with Pillow installed, run theme_pack.py to compile, check, and export decoded RGB565 preview PNGs:
python3 firmware/tools/theme_pack.py my-theme --output /Volumes/Scratch/SnowskyEcho/themes/my-theme.gtheme --preview /Volumes/Scratch/SnowskyEcho/themes/previewpython3 firmware/tools/theme_pack.py --check /Volumes/Scratch/SnowskyEcho/themes/my-theme.gtheme
Passing a directory to --output writes the canonical UUID filename automatically. The command prints JSON showing every asset’s codec, encoded size, compression ratio, PSNR quality, and any warnings.
Step 5 of 5
You can install any .gtheme pack over ordinary USB storage—even without Companion.
.gtheme file inside /.gnarlyr/themes/ (create the folder if needed). Use a clean filename ending in lowercase .gtheme (at most 63 UTF-8 bytes, not starting with a dot).id and bump version (for example, 1.0.0 → 1.1.0). When multiple files share a UUID, the player picks the highest numeric version./.gnarlyr/themes/ and lists up to 12 packs.docs/theme-format.md in the source checkout.