Value lists
The fixed sets a theme can name: app roles, folder slots, icon names, sort orders, scroll targets and the screen shapes the store checks against.
On this page
Properties whose value comes from a closed list, collected in one place.
App roles#
Anywhere a package name is accepted (appKey, an appSlots entry, the value of open_role) a role may be used instead, written as role:<name>. A role points at whichever app the user has chosen for that job, so a theme built on roles works on a device you have never seen.
| Role | The user's default for |
|---|---|
role:default_phone | Calls |
role:default_sms | Text messages (default_messaging also accepted) |
role:default_browser | The web |
role:default_email | Mail (default_mail also accepted) |
role:default_camera | The camera |
role:default_gallery | Photos (default_photos also accepted) |
role:default_maps | Maps (default_navigation also accepted) |
role:default_music | Music (default_player also accepted) |
role:default_calendar | The calendar |
role:default_contacts | Contacts |
role:default_clock | Clock and alarms |
role:default_messenger | Chat (default_chat also accepted) |
A role with no app behind it resolves to nothing and the slot stays empty, rather than launching something the user did not pick.
App slots#
An appSlots entry is one of five things:
| Entry | Meaning |
|---|---|
"com.example.app" | That package. |
"role:default_phone" | A role, as above. |
"" | An empty cell. |
"folder:{\"name\":\"Media\",\"apps\":[\"com.a\",\"com.b\"]}" | A folder, opened in place. |
"shortcut:com.android.chrome#aHR0cHM6…" | A pinned shortcut: host package, #, and the shortcut id in base64url. |
The same forms are allowed inside a folder's apps array, which is why the shortcut form is a single token rather than nested JSON.
A folder that ends up with one app left in it becomes an ordinary slot, and one with none becomes an empty cell, so a folder cannot rot into a container with nothing in it.
An app in a work profile or Private Space is addressed with a suffix the launcher writes
itself when you drag it in. **Do not type it by hand and do not publish a theme containing
one*: the number in it identifies a profile on your* device and means nothing on anybody
else's. The same holds for
shortcut:entries, which is why export and publishing removethem for you.
Icon names#
The icon element takes one of these in iconName:
add alarm apps arrow_back arrow_forward battery bluetooth bookmark brightness
calendar call camera camera_alt check clear close cloud code copy dark_mode
delete download edit email expand_less expand_more favorite flash folder forum
headphones heart help home image info language link location lock lock_open
map menu message mic mic_off more_vert music navigate_next notifications
notifications_off pause person phone photo pic play power refresh schedule
search security send settings share shopping skip_next skip_previous star
timer tune upload video videocam visibility volume_off volume_up wifi wifi_off
workThey are drawn as vectors, so they take color and scale with the element. For anything not in the list, use an image with an asset:// source.
Sort orders#
sortBy on an app_grid:
| Value | Order |
|---|---|
name | Alphabetical. The default. |
install | Most recently installed first; apps with the same or an unknown install time stay alphabetical among themselves. |
Progress animation intensity#
progressAnimationIntensity on a progress_bar, when progressAnimated is on:
| Value | Feel |
|---|---|
sanft | Slow, no overshoot. |
mittel | The default. |
lebhaft | Fast, with a bounce. |
The values are German words because they were named before the format was public. They are stored strings, so changing them now would break every theme that uses one; the labels in the editor are translated.
Scroll targets#
scroll_to takes the id of an element inside a scrolling container. Any child will do, and the container brings it to the top. There is no separate "section" concept: give the element you want to scroll to a recognisable id and use that.
Scrolling a container that is not on screen has no visible effect, so a scroll_to normally sits on the same page as its target.
Screen shapes#
A theme is checked against eight reference shapes, and the store shows which ones it fits. The sizes are in dp, so they already account for pixel density.
| Id | Width × height | Status bar | Nav bar |
|---|---|---|---|
phone_small | 320 × 720 | 24 | 48 |
phone | 411 × 914 | 28 | 32 |
phone_large | 448 × 998 | 28 | 32 |
phone_landscape | 914 × 411 | 28 | 0, 48 right inset |
foldable | 674 × 841 | 24 | 0 |
tablet_small | 600 × 960 | 24 | 0 |
tablet | 800 × 1280 | 24 | 0 |
tablet_landscape | 1280 × 800 | 24 | 0 |
The check evaluates the theme's own formulas at each of those sizes and looks for elements that fall outside the screen or overlap in a way they do not at the size you built at. It is a layout check, not a taste one: passing means nothing is cut off, not that it looks good. See different screens for how to write layouts that pass.
The same eight shapes are the formats offered by the editor's preview device, with the bars and insets listed above, so a flagged shape can be looked at rather than reasoned about.
Documentation for launcher 0.1.0-alpha Android 12 and later last updated