Compás Developers

Create themes

Give Compás your own colors, icons and Home screen style.

Themes

A theme is a text file containing your colors and, optionally, icons and Home screen settings. Save this example as <SD card>/Themes/MyTheme.theme:

# My theme colors
name=My Theme
screen=0x101820
card=0x1B2838
list_row=0x223449
text_primary=0xF4F7FA
text_muted=0xAAB8C7

All six fields are required. The theme picker looks in Themes/ and up to two levels of subfolders. Colors accept decimal or 0x hexadecimal values from 0x000000 to 0xFFFFFF. Each setting is a key=value line; lines beginning with # are comments. From the player, open More > Themes and select your theme. Close and reopen the picker after adding a file so it rescans. A PNG preview is optional: place MyTheme.png beside MyTheme.theme to have it appear in the picker.

You can also set icon folders, individual icons, Home tile styles, and launcher appearance. See Writing a .theme file in PLUGINS.md for the full key list and the published theme package examples.

To publish a theme in Plugin Store, follow the individual theme packages in the compas-plugins repository. For example, ThemeCobaltSignal includes store.json, CobaltSignal.theme, a matching CobaltSignal.png preview, and a compatibility Lua stub. The store package installs the theme and preview under Themes/; use the package's store.json as the format example. The player can apply .theme files directly; you do not need the compatibility Lua file for that.

Themes change colors, icons, and supported Home styling. To redesign the Now Playing screen, create an XML player layout instead; see Player Layouts and the public plugin layout examples.

Theming

Themes are natively built into Compás and managed via the built-in system theme picker (More → Themes), loading .theme key-value files directly from SD/Themes/ without requiring a Lua theme plugin. Active themes resolve icons via an in-memory native icon overlay layer without performing NAND bulk copies. When other plugins call plugin.set_icon, their explicitly copied overrides continue to be supported and take priority over theme layer lookups.

Theme packs distributed via the Plugin Store keep companion .theme files alongside a legacy Themes.lua stub for backward compatibility with older player versions and store catalog classification. On current versions of the player, Themes.lua is recognized as a legacy theme loader and suppressed at load time, as native theme management handles .theme files directly.

The Themes plugin source shows the historical reference format for custom theme application and programmatic UI styling.

To apply... Call
colors nothing, they apply immediately
icons, Home and launcher layouts plugin.refresh_theme()
anything, the heavy way plugin.reload_ui()

Music menu and Quick Drawer customization

Additive API 16 capabilities: ui.music_layout and ui.quick_drawer_layout. Check these capabilities before calling the new functions on an older player. Declare layouts after plugin.define() during startup; use plugin.reload_ui() after saving a change in your plugin's own settings. These declarations do not write the user's preferences to storage.

if plugin.has_capability("ui.music_layout") then
    plugin.set_music_layout({
        order = { "albums", "artists", "files", "playlists" },
        toolbar = { "library" },
    })
end
if plugin.has_capability("ui.quick_drawer_layout") then
    plugin.set_quick_drawer_layout({
        enabled = true,
        order = { "sleep", "bluetooth", "wifi", "plugins" },
        eq_visible = false,
        volume_visible = true,
    })
end

Native Music menu choices are saved under Settings → Display → Appearance. Plugin declarations remain session overrides: disabling Kids Mode restores the saved native choices. Music toolbar customization remains available to plugins and themes. Quick Drawer preferences remain independent.

plugin.set_music_layout(options) accepts order and toolbar arrays. Music keys are files, artists, albums, album_artist, genres, all_songs, and playlists. Toolbar keys are sound, playback, and library, ordered left to right. Existing plugin.set_icon() overrides still apply to their native icons. Native library browsing, artwork, and paging are preserved.

plugin.set_quick_drawer_layout(options) accepts enabled, order, eq_visible, and volume_visible. Drawer keys are wifi, bluetooth, sleep, crossfade, airplay, dlna, gapless, remote_control, car_mode, and plugins. The plugins key places all registered quick toggles as a block in their registration order. The first four visible toggles appear collapsed; the remaining toggles appear in the expanded area. Brightness and the now-playing card retain their native layout. Hiding a control does not turn off its feature or cancel an active sleep timer.

Omitted Music options use the standard native layout; omitted Drawer options inherit saved preferences. Within an explicit array, omitted keys are hidden; an empty array hides all entries in that section. Unknown, duplicate, sparse, or incorrectly typed entries raise an error before changing the previous declaration. Passing nil releases that plugin's declaration for the corresponding function.

The latest declaration for each option determines its order or value; an omitted option leaves other plugins' declarations intact. Visibility restrictions combine: an item hidden by any plugin stays hidden, and a false request for drawer enablement, EQ visibility, or volume visibility wins over true. This keeps a later theme from undoing Kids Mode restrictions. Failed or unloaded plugins lose their declarations, restoring another plugin's declaration or the saved preferences. Users can configure Music menu and Quick Drawer under Settings > Display > Appearance. Music toolbar customization is available to plugins and themes. Plugin overrides can take precedence over these choices. These controls simplify navigation; they are not a device security boundary. Customized saved Drawer orders are explicit selections: new entries added in future releases remain hidden until selected. Unchanged default orders follow the defaults of the installed release.

plugin.set_icon(theme_path, source_file)

Replaces a built-in icon. theme_path is the icon's path in the theme (for example "launcher/book.png"); source_file is the replacement image, which is copied into the theme override folder. Raises an error if it can't be copied.

  • Call it from top-level code. The app caches icons, and screens built before the override existed keep using the old file until refresh_theme() or reload_ui().
  • Keep the replacement close to the original's size and shape: the layout was measured for the original.

plugin.set_background_color(slot, rgb) / plugin.set_text_color(slot, rgb)

Change colors app-wide, immediately, from anywhere. rgb is 0xRRGGBB.

  • Background slots: "screen" (every screen), "card" (popups and cards), "list_row" (every list row).
  • Text slots: "primary" (titles and labels) and "muted" (secondary text). Red warning text and accent-colored text are not affected.

Another slot name is an error.

plugin.set_home_layout(tiles, options)

Restyles Home, chooses which tiles it shows, or turns it into a scrolling list. Takes effect when Home is rebuilt (refresh_theme(), reload_ui() or a restart). Each call replaces the whole previous layout.

tiles restyles individual tiles, one table per tile:

{
    key = "music",          -- native key or a register_home_tile id (required)
    bg_color = 0x1e3524, text_color = 0xd8c9a3,
    radius = 24,            -- px, not negative
    -- list mode only:
    height = 92, width = 440,         -- Home reference sizing (see below)
    align = "center",                 -- "left" (default), "center" or "right"
    accessory = true,                 -- show a chevron
    text_size = "medium",             -- like row options
    icon = true,                      -- show the tile's icon in the row
}

Native keys: music, stream_media, wireless, books, settings, dac, and subsonic (opt-in, opens Subsonic directly).

Home measurements use the R1's 480×800 screen as a reference. Widths, radii and gaps scale to the active board. In list mode, heights express the relative row proportions: Home expands or shrinks them to fill the space between the status bar and gesture area, respecting font and touch minimums. If those minimums cannot fit, the list scrolls. This Home fitting does not change dimensions passed to submenu layouts or other plugin lists.

options:

  • mode: "tile" (the icon grid, default) or "list".
  • tile_gap (tile mode, 0 to 64 px) and row_gap (list mode, 0 to 84 px, 0 means the default 6).
  • order: which tiles to show, in order. Leave a tile out to hide it; add a plugin tile's id to show it. Without order, Home shows the six original tiles. Tile mode shows at most 6, since the grid doesn't scroll; use list mode for more.
  • background_image: a .png, .jpg or .jpeg behind Home only, drawn at its own size and centered. Make it the screen's size (480x800 on the R1). It is copied when you call the function.

Errors: a repeated order entry, more than 12 tile entries, an unknown align or text_size, a negative radius, an invalid background image, or options that isn't a table. A tile key that doesn't exist yet is not an error (its plugin may load later); if it still doesn't exist when Home is built, it is skipped. A repeated key replaces the earlier entry.

plugin.set_home_layout({
    { key = "music", bg_color = 0x1e3524, text_color = 0xd8c9a3, radius = 24 },
}, { mode = "list", row_gap = 10, order = { "music", "dac", "books" } })

plugin.set_launcher_layout(options)

Switches the Music, Stream Media and Wireless menus between their icon grid and a list, independently. Each of music, stream_media and wireless takes mode = "tile" or "list" plus the list styling fields of set_home_layout (row_gap, height, width, bg_color, text_color, radius, align, accessory, text_size, icon). Menus you leave out stay a grid; an empty call resets all three. Apply with refresh_theme().

plugin.set_launcher_layout({
    music = { mode = "list", height = 108, width = 480, row_gap = 10,
              bg_color = 0x000000, text_color = 0x33FF33, text_size = "mono" },
})

plugin.register_player_action(name, callback)

Requires plugin.define and capability ui.player_actions. Registers a named click action for XML Player layouts registered by this plugin with plugin.set_player_layout. Names are 1–63 ASCII letters, digits, _, - or .; library and none are reserved. The callback receives the action name and can use the normal UI APIs to open custom menus. Re-registering the same name replaces the callback; the shared registry holds at most 32 actions. Callbacks are removed when their plugin unloads or fails to load.

Use compas_artist_action/compas_album_action XML constants or <event_cb trigger="clicked" callback="compas_action" user_data="name" />. Layout-local lyrics and click options, complete XML and Lua examples, and the lifetime rules are documented in Player layouts. No LVGL patches, Lua evaluation from XML, or custom widget types are required.

plugin.restore_player_layout()

Requires plugin.define and capability ui.player_layout_restore. Clears only this plugin's session layout selection and returns to the layout saved in Settings. Another plugin's selection is preserved. Returns whether the effective layout ID changed, not whether an override existed. This does not restore global background options or maintain a stack of plugin selections.

plugin.set_player_layout(options)

Changes the look of the Player (Now Playing) screen. Every field is optional.

Background

Field Type Meaning
flat boolean true replaces the blurred cover background with a solid color.
bg_color 0xRRGGBB The solid color for flat. Without it, the theme background is used.
blur_radius integer Blur strength, 0 to 64. Default 5.
blur_passes integer Blur passes, 0 to 16. Default 3.
darken_num, darken_den integers Darkens the blurred cover by darken_num / darken_den. Set both. Default 1/2.

Each call replaces all of these, so pass every option you want in the same call. They are global: they apply to every layout, including Default, and not only to one you ship. A layout that wants its own background should paint it (an opaque root) instead of relying on flat.

Whole layout

Field Type Meaning
xml string An XML layout file, relative to <SD card>/.plugins/.
name string Name shown in Settings. Default: the file name without .xml.
id string Internal id, 1 to 63 letters, digits, _, - or .; not default. Default: plugin.<file name without .xml>, other characters replaced by _. Longer ids are cut short.

How to write the XML file, and which widget names the app needs, is explained in Player layouts.

  • The file must be inside the .plugins folder. Absolute paths, .., links leading outside the folder, or a missing file raise a Lua error.
  • If the file can't be used (invalid XML or a required widget missing), the default layout is shown instead.
  • Called from top-level code, it only adds the layout to **Settings > Display

    Player Layout > Layout**. Users pick it there like any other layout, and the choice is remembered while the plugin stays installed and enabled. If the plugin is disabled or removed, the default layout is shown instead.

  • Called from a callback (a button, for example), the layout is selected right away for this session. If that changes the active layout, the app queues a Player-only rebuild on the UI loop. It preserves plugin Lua state, audio/DSP, queue, navigation history, and any other screen currently in front. When Player is visible, a retained frame covers it while its widgets are replaced. A rebuild delayed by an interaction stays queued and uses the latest request. The selection stays until the player restarts or the user picks another layout in Settings.
  • The native layout picker and plugin.restore_player_layout() use this same deferred Player-only rebuild path. They do not restart plugins or recreate other screens.
  • Check ui.player_layout_xml first if the plugin should also run on older firmware.
-- Solid dark background instead of the blurred cover
plugin.set_player_layout({ flat = true, bg_color = 0x101010 })

-- Offer a layout shipped with the plugin, with the same background
if plugin.has_capability("ui.player_layout_xml") then
    plugin.set_player_layout({
        xml = "player_layouts/clean.xml", name = "Clean",
        flat = true, bg_color = 0x101010,
    })
end

plugin.now_playing.set_image(name, path) / plugin.now_playing.set_text(name, text)

Updates a custom named widget in an XML Now Playing layout owned by this plugin. Requires plugin.define() and a layout registered with plugin.set_player_layout(). Check capabilities ui.now_playing.set_image and ui.now_playing.set_text; these are new in API 18.

Use an lv_image for images and an lv_label for text. Names must start with plugin_, contain only ASCII letters, digits, _, -, or ., and fit in 63 bytes. Native roles such as cover_img, title, and play_btn cannot be changed through these setters.

<lv_image name="plugin_artist_image" width="300" height="300" inner_align="contain" />
<lv_label name="plugin_caption" text="" />
plugin.now_playing.set_image("plugin_artist_image", "/Album/Artist/artist.png")
plugin.now_playing.set_text("plugin_caption", "Chapter 2")
  • Image paths are absolute filesystem paths or relative to <SD card>/.plugins/, like list icons. Pass a local image supported by the player's LVGL decoder, not a URL, XML image identifier, or an S:-prefixed LVGL path. Missing or unsupported images raise an error without replacing the previous value. The resolved filesystem path is limited to 511 bytes. Files are referenced, not copied: keep them available while the image is in use.
  • Text is literal UTF-8, up to 4095 bytes. Values and names cannot contain NUL.
  • Both functions return true when the value is accepted. Invalid arguments, a wrong widget type in the active owned layout, exhausted storage, or an inactive/undefined plugin raise a Lua error.
  • Updates are retained per plugin and widget name, even if its layout is not active or Now Playing has not been created. Matching widgets receive the latest value when the layout is created again. Missing widgets are skipped; widgets of the wrong type are skipped during creation. Different plugins' values never modify each other's layouts.
  • Up to 32 named values per plugin and 128 across all plugins are retained. Passing nil clears the current image or text and removes its retained value. On the next rebuild, the XML default applies again. Unloading the plugin clears its values.
  • This updates only the custom widget, not native cover art, its blurred background, or quick drawer artwork. To show a custom picture instead of the cover, hide the required native cover_img in your XML and place a custom image in the desired position.

plugin.refresh_theme()

Applies icon changes and the Home and launcher layouts, without disturbing anything else: other screens, navigation, playback and connections stay as they are. It runs after your callback returns. Use it after a batch of theme calls.

plugin.reload_ui()

Rebuilds every screen and restarts all plugins, without restarting the app or interrupting playback and connections. It runs after your callback returns, and the user lands on Home. Call it only in response to a user action, never unconditionally from top-level code (that would reload on every load; a second request during a reload is ignored).

plugin.register_list_item("display", "Theme", function()
    plugin.show_list("Theme", { "Dark", "White" }, function(index)
        apply_theme(index == 2 and "white" or "dark")  -- your own theme calls
        plugin.refresh_theme()
    end)
end)

Writing a .theme file

A theme is a plain text file that you can write without a plugin. Put it in SD/Themes/ (subfolders up to two levels deep are scanned), name it with a lowercase .theme extension, and pick it under More → Themes. Files whose names start with a dot are ignored.

Each line is key=value. Blank lines, lines starting with #, and lines with no = are skipped. Unknown keys are ignored, so a theme written for a newer version still loads on an older one.

Colors are 0xRRGGBB (decimal also works).

The six required keys are:

Key Used for
name The name shown in the Themes list
screen Screen background
card Card background
list_row List row background
text_primary Main text color
text_muted Secondary text color

A file missing any of them, or with a malformed value, is rejected and not shown in the list.

Optional keys:

Key Values Effect
icon_root theme1, theme2, or a folder under SD/Themes/ Folder the icons are taken from. theme1 and theme2 are the firmware's built-in icon sets.
drawer_root Same as icon_root Icon folder for the drawer
icon.<path> Source file, relative to SD/Themes/ Replaces one icon, for example icon.launcher/book.png=MyTheme/book.png
home_mode tile or list Home screen style
home_tile_gap, home_row_gap Pixels Spacing on Home
home_order Comma-separated tile ids Home tile order. In tile mode, at most 6 tiles.
submenu_mode tile or list Style of the Music, streaming and wireless launcher menus
tile.<id>.<property> See below Styles one Home tile. Ids such as music and stream_media.

Tile properties: bg_color, text_color, radius, height, width, align (left, center, right), text_size (small, medium, large, mono), accessory and icon (true or false).

Paths must be relative. They may not contain .., a backslash, or a leading slash, and the icon_root and drawer_root paths are checked the same way.

A minimal theme:

name=Night Blue
screen=0x0B1B2B
card=0x14304A
list_row=0x102638
text_primary=0xF2F6FA
text_muted=0x9FB3C8
icon_root=theme2

The published theme packages include complete examples such as White and Mountain Sunset.

Writing a theme

A Compás theme is a plain text .theme file. Put it in SD/Themes/ and choose it from More → Themes. Keep one setting on each key=value line. Blank lines, lines beginning with #, and lines without = are ignored. Keys are case-sensitive. There is no section syntax.

Start with the required colors

Every theme needs these six settings: a non-empty name shorter than 64 bytes, plus five colors. Colors accept decimal numbers or 0xRRGGBB values from 0 through 0xFFFFFF. For example, 0x1B2838 and 1779768 represent the same color.

name=Night Blue
screen=0x101820
card=0x1B2838
list_row=0x223449
text_primary=0xF4F7FA
text_muted=0xAAB8C7

If any required setting is missing or invalid, the theme is rejected. A later repeat of a setting replaces its earlier value.

Choose icon folders or replace individual images

icon_root sets the general icon folder. drawer_root can set a separate folder for quick drawer icons. Both can use the built-in theme1 or theme2 set, or a relative folder under Themes/. Leave a setting out to use the normal fallback. An empty value clears a previous value.

For a single replacement, write icon.<resource path>=<source file>. The path before = names the image the player requests; the value after = names the replacement file inside Themes/. For example:

icon.launcher/music.png=NightBlue/launcher/music.png

Here launcher/music.png is the destination resource path, while NightBlue/launcher/music.png is the source image. Use paths inside Themes/ for portable themes. The destination resource path must be relative: no leading /, backslashes, .., or control characters. Root and source values also reject backslashes, .., and control characters; the runtime resolver can accept an absolute source or root path, though that makes the theme specific to that device. Up to 32 individual replacements are supported. Repeating the same icon.<path> changes its source.

The player asks for resource paths at runtime, so there is no fixed complete list of valid destinations. Paths such as launcher/music.png are examples from current player lookups; future versions can add more.

Style Home tiles and launcher menus

Optional Home settings are:

Setting Values What it changes
home_mode tile or list Home layout style
home_tile_gap Nonnegative integer Space between Home tiles
home_row_gap Nonnegative integer Space between Home list rows
home_order Comma-separated tile IDs Home tile order
submenu_mode tile or list Music, Stream Media, and Wireless menus

Tile IDs can contain letters, digits, ., _, and -, and must be shorter than 40 bytes. IDs depend on tiles registered by the player and plugins. In tile mode, home_order can list at most six unique IDs; in list mode, it can contain more. An empty home_order= clears the order.

Use tile.<id>.<property> to style a tile. Supported properties are:

Property Value
bg_color, text_color Color in the same format as the required colors
radius, height, width Nonnegative 32-bit integer
align left, center, or right
text_size small, medium, large, or mono
accessory, icon true or false

For example, tile.music.bg_color=0x28415A changes the Music tile background. Unknown keys and unknown tile properties are ignored, which lets older players skip settings they do not understand.

Omitted Home settings leave the player's normal layout in place. submenu_mode applies one shared style to Music, Stream Media, and Wireless; it is separate from Home tile styling.

Package a theme for Plugin Store

A theme package uses the same store.json format as other plugins. description is required. category defaults to Tools, author to an empty value, and publish to true; preview and files are optional. Each files entry pairs a package src path with an install dest path. Theme packages commonly install the .theme file and its PNG preview into Themes/.

The package's Lua compatibility stub is only needed for older player versions; current players load .theme files directly. Store index fields such as plugin id, name, version, and api_min come from the plugin declaration. They describe the package/plugin, not the .theme file.

API index

Looking for a particular function, setting or widget? Choose a name to see how to use it.

Theme settings

Theme colors

Colors set from Lua

Built-in color defaults

Icon and tile settings

Parsed theme values

Icon destinations

Icons with variable paths

Icon paths

Theme package fields

API reference

This guide covers API 17. Older minimum versions are listed where known. For names you choose yourself, such as actions or image files, check the naming rules below.

Theme settings

card

Required 24-bit theme color.

Type
RGB color
Required
Yes
Default
none
Applies to
theme parser

View source

drawer_root

Optional icon resource root; validated as a safe source path.

Type
relative path or built-in root
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

home_mode

Optional Home presentation mode.

Type
tile|list
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

home_order

Optional Home tile order; tile mode allows at most six.

Type
comma-separated tile IDs
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

home_row_gap

Optional Home spacing in pixels.

Type
integer
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

home_tile_gap

Optional Home spacing in pixels.

Type
integer
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

icon_root

Optional icon resource root; validated as a safe source path.

Type
relative path or built-in root
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

list_row

Required 24-bit theme color.

Type
RGB color
Required
Yes
Default
none
Applies to
theme parser

View source

name

Required display name.

Type
string
Required
Yes
Default
none
Applies to
theme parser

View source

screen

Required 24-bit theme color.

Type
RGB color
Required
Yes
Default
none
Applies to
theme parser

View source

submenu_mode

Optional shared Music, Stream Media, and Wireless launcher style.

Type
tile|list
Required
No
Default
omitted / baseline
Applies to
theme parser

View source

text_muted

Required 24-bit theme color.

Type
RGB color
Required
Yes
Default
none
Applies to
theme parser

View source

text_primary

Required 24-bit theme color.

Type
RGB color
Required
Yes
Default
none
Applies to
theme parser

View source

Theme colors

card

Required RGB color slot; applied to native/plugin UI surfaces.

Type
0xRRGGBB or decimal
Required
Yes
Default
none
Applies to
theme parser

View source

list_row

Required RGB color slot; applied to native/plugin UI surfaces.

Type
0xRRGGBB or decimal
Required
Yes
Default
none
Applies to
theme parser

View source

screen

Required RGB color slot; applied to native/plugin UI surfaces.

Type
0xRRGGBB or decimal
Required
Yes
Default
none
Applies to
theme parser

View source

text_muted

Required RGB color slot; applied to native/plugin UI surfaces.

Type
0xRRGGBB or decimal
Required
Yes
Default
none
Applies to
theme parser

View source

text_primary

Required RGB color slot; applied to native/plugin UI surfaces.

Type
0xRRGGBB or decimal
Required
Yes
Default
none
Applies to
theme parser

View source

Colors set from Lua

set_background_color:card

Slot accepted by plugin.set_background_color(slot, rgb). This is a Lua argument, not an extra .theme key.

Type
RGB integer
Required
No
Default
current theme
Applies to
theme parser

View source

set_background_color:list_row

Slot accepted by plugin.set_background_color(slot, rgb). This is a Lua argument, not an extra .theme key.

Type
RGB integer
Required
No
Default
current theme
Applies to
theme parser

View source

set_background_color:screen

Slot accepted by plugin.set_background_color(slot, rgb). This is a Lua argument, not an extra .theme key.

Type
RGB integer
Required
No
Default
current theme
Applies to
theme parser

View source

set_text_color:muted

Slot accepted by plugin.set_text_color(slot, rgb). This is a Lua argument, not an extra .theme key.

Type
RGB integer
Required
No
Default
current theme
Applies to
theme parser

View source

set_text_color:primary

Slot accepted by plugin.set_text_color(slot, rgb). This is a Lua argument, not an extra .theme key.

Type
RGB integer
Required
No
Default
current theme
Applies to
theme parser

View source

Built-in color defaults

GUI_COLOR_BORDER
Type
RGB integer
Required
No
Default
0x535659
Applies to
theme parser

View source

GUI_COLOR_PANEL
Type
RGB integer
Required
No
Default
0x292C30
Applies to
theme parser

View source

GUI_COLOR_PRESSED
Type
RGB integer
Required
No
Default
0x393B3D
Applies to
theme parser

View source

GUI_COLOR_PRIMARY
Type
RGB integer
Required
No
Default
0xFCFCFC
Applies to
theme parser

View source

GUI_COLOR_ROW
Type
RGB integer
Required
No
Default
0x1D1F22
Applies to
theme parser

View source

GUI_COLOR_SCREEN
Type
RGB integer
Required
No
Default
0x141618
Applies to
theme parser

View source

GUI_COLOR_SECONDARY
Type
RGB integer
Required
No
Default
0xA1A9B1
Applies to
theme parser

View source

Icon and tile settings

icon.<path>

Per-icon override: key suffix is runtime icon resource name; value is a source file under Themes/.

Type
safe relative paths
Required
No
Default
no override
Applies to
up to 32 entries

View source

tile.<id>.accessory

Optional Home tile override property (accessory).

Type
boolean
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.align

Optional Home tile override property (align).

Type
enum
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.bg_color

Optional Home tile override property (bg_color).

Type
RGB color
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.height

Optional Home tile override property (height).

Type
integer
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.icon

Optional Home tile override property (icon).

Type
boolean
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.radius

Optional Home tile override property (radius).

Type
integer
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.text_color

Optional Home tile override property (text_color).

Type
RGB color
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.text_size

Optional Home tile override property (text_size).

Type
enum
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

tile.<id>.width

Optional Home tile override property (width).

Type
integer
Required
No
Default
baseline / unset
Applies to
each valid tile ID

View source

Parsed theme values

card
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

drawer_root
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_home
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_home_mode
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_home_order
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_home_row_gap
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_home_tile_gap
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_launcher
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

has_submenu_mode
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

home
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

icon_override_count
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

icon_root
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

launcher
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

list_row
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

name
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

relpath
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

screen
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

source
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

text_muted
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

text_primary
Type
native result field
Required
No
Default
zero-initialized unless populated
Applies to
theme parser

View source

theme_icon_override.relpath/source

Stores destination resource path and source file for each .theme icon override.

Type
path pair
Required
No
Default
empty
Applies to
theme parser

View source

Icon destinations

<runtime resource path>

Resolver compares the override relpath with the requested runtime resource path; no closed valid-name table is defined.

Type
safe relative resource path
Required
No
Default
firmware lookup
Applies to
per native icon lookup

View source

Icons with variable paths

%.*s/%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%s/Compas_%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%s/Compas_%s_%u.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%s_s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%sfolder.jpg
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

%sfolder.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

BREEZE_DARK_PREVIEW
Type
resource path expression
Required
No
Default
macro-defined
Applies to
when this native call site runs

View source

PLACEHOLDER_ASSET
Type
resource path expression
Required
No
Default
macro-defined
Applies to
when this native call site runs

View source

S:%s/%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

THUMB_DEFAULT_ASSET
Type
resource path expression
Required
No
Default
macro-defined
Applies to
when this native call site runs

View source

keyboard/%s_%c.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

player_layouts/%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

topbar/%s_%s.png
Type
resource path template
Required
No
Default
computed
Applies to
when this native call site runs

View source

Icon paths

boot_animation/en/0.jpg

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

breeze_rows/library_sorting.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/char.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/del.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/dot.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/enter.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/left.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/num.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/psk_show.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/right.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/space2.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/symbol.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

keyboard/upper.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

navigation/back.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

navigation/chevron-right.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

navigation/more.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

navigation/reorder.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

navigation/search.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/airplay_logo_white.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/btn_next.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/btn_prev.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/collect_out.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/default_cover_565.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/ic_more.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playing_plane/quality_waveform.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

playlist_actions/trash.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

pull_down/blk.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

pull_down/sleep_switch.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

settings/playback.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

stream_media/download.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

sub_back/bg_search.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

sub_back/btn_back.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

sub_back/close.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

titlebar/breeze_refresh.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/aac.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/aptx.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/aptx_hd.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/breeze_play.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/ldac.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/sbc.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/ssc.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

topbar/uat.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

touch_list/a_z_result_bg.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

touch_list/del.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

touch_list/list_default_album.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

volume/vol.png

Literal native asset lookup path; this caller's request can be matched by icon.<path>. Observed example, not a closed allowlist.

Type
resource path
Required
No
Default
firmware asset
Applies to
when this native call site runs

View source

Theme package fields

api_min

Minimum plugin API from plugin.define(), emitted in index; not a theme-file version.

Type
positive integer
Required
No
Default
required in plugin.define
Applies to
theme parser

View source

author

Observed Plugin Store theme package metadata field.

Type
str
Required
No
Default
example value
Applies to
theme parser

View source

category

Observed Plugin Store theme package metadata field.

Type
str
Required
No
Default
example value
Applies to
theme parser

View source

description

Observed Plugin Store theme package metadata field.

Type
str
Required
No
Default
example value
Applies to
theme parser

View source

files

Observed Plugin Store theme package metadata field.

Type
list
Required
No
Default
example value
Applies to
theme parser

View source

files[].src/dest

Package file mapping; example installs .theme and preview beneath Themes/.

Type
relative path pair
Required
No
Default
example mapping
Applies to
theme parser

View source

id

Plugin ID from plugin.define(), emitted in index.

Type
string
Required
No
Default
required in plugin.define
Applies to
theme parser

View source

name

Plugin display name from plugin.define(), emitted in index.

Type
string
Required
No
Default
required in plugin.define
Applies to
theme parser

View source

preview

Observed Plugin Store theme package metadata field.

Type
str
Required
No
Default
example value
Applies to
theme parser

View source

preview.variants[]

Generated smaller preview image variants when present.

Type
object list
Required
No
Default
omitted when no variants
Applies to
theme parser

View source

publish

Whether to publish this plugin in the generated index.

Type
boolean
Required
No
Default
true
Applies to
theme parser

View source

size

Generated installed byte count in the store index.

Type
integer
Required
No
Default
generated
Applies to
theme parser

View source

version

Plugin version from plugin.define(), emitted in index.

Type
dotted version
Required
No
Default
required in plugin.define
Applies to
theme parser

View source