ThemeStore Store Docs FAQ
Documentation

Element properties

Every element type and every property it understands, grouped by what the property is for.

On this page

An element is an object in a page's components array with an id, a type, and the properties below. Almost every value is a formula, which is why the numbers are written as strings.

Element types#

typeWhat it draws
textText, usually a formula.
shapeA rectangle, circle or oval. Backgrounds, cards, dividers.
imageA picture. See images.
iconA built-in vector icon, by name.
app_launcherOne app icon with an optional label.
app_gridMany apps, as a grid or a list. See app grids.
repeaterOne card design, repeated over a list. See repeaters.
groupA container for other elements, free or stacked as a scrolling list.
input_fieldA text field writing into a variable.
url_launcherOpens an address.
progress_barA bar, ring or row of dots.
effectBuilt in movement: water, sheen or a light pulse. Backgrounds only. See below.
particlesA galaxy of points in space that turns with the pages. Backgrounds only. See below.
alphabet_indexThe A-Z strip. Kept for older themes; new ones use a repeater with scrubVariable.

app_list is read as app_grid, and scroll_container as group with a list layout. Both are older names that still load.

Common to every element#

PropertyDefaultMeaning
id-Unique within the page.
type-One of the types above.
name""Label in the editor's layer list.
x, y"0"Position in dp, relative to the page or the parent group.
width, heightautoSize in dp.
hidden"false"A formula. True removes the element entirely, which is not the same as opacity 0, which still occupies the layout and still takes taps.
movablefalseMay the user drag this element on the normal home screen?

Transform#

PropertyDefaultMeaning
translateX, translateY"0"Offset in dp, after layout. Cheaper than moving x/y, because nothing is measured again.
scale"1.0"
rotation"0"Degrees.
opacity"1.0"0-1.

Style#

PropertyDefaultMeaning
background"transparent"Fill colour.
cornerRadius"0"dp.
elevation"0"Shadow depth in dp.
borderColor, borderWidthtransparent, "0"
backdropBlur"0"Blurs what is behind the element, in dp. The glass effect.
shapeType"rect"shape only: rect, circle, oval.

Text#

Applies to text and to the labels of other elements.

PropertyDefaultMeaning
text-The content. Usually a formula.
color"'#ffffff'"A formula, so the quotes are part of the value.
fontSize"16"
fontWeight"normal"thin, extralight, light, normal, medium, semibold, bold, extrabold, black.
fontFamily"default"default, monospace, serif, cursive.
textAlign"left"left, center, right, justify.
maxLines"10"A formula, so a card can expand when tapped.

Interaction#

PropertyDefaultMeaning
clickActions""JSON array of {trigger, action, value}. See click actions.
animations""JSON array of animation entries, added on top of the transform formulas. See animations.

app_launcher#

PropertyDefaultMeaning
appKey""The target, as a formula producing a package name (com.android.chrome) or a role (role:default_phone). Because it is a formula, the target can be conditional.
role-The older single-role field. Still read, so older themes keep working.
showLabelfalse
labelColor, labelSize"'#ffffff'", "11"
iconPackId"""" uses the active pack, "none" uses none.
iconTint""Empty means the Material default.

app_grid#

PropertyDefaultMeaning
appMode"all"all, manual, library.
layout"grid"grid or list.
appSlots"[]"JSON array of package names, role: entries, folder: entries, or "" for a gap. manual only. See app slots.
slotSetId""Name under which this grid's slots are recognised across theme versions. Empty means the component id is used. Give a grid a stable slotSetId and you can rebuild it from scratch in a later version without your users losing the apps they placed in it. See updating a theme.
gridColumns"4"A formula. Derive it from screen_width.
itemSize"56"Icon size in dp.
showLabelstrue
sortBy"name"name or install. See sort orders.
filterFormula""Per app, with app_name and app_package in scope.
maxItems, skipItems"0"Caps and offsets, as formulas. 0 means no limit.
resultVariable""all: variable that receives how many apps are shown right now (after filter, cap and offset). <name>_first receives the name of the first one, or "" when nothing matches. For search hints such as "3 matches" or "nothing found".
autoFillfalseMaterialise the grid with every app across as many pages as needed, once.
appendAllAppsfalsemanual: continue alphabetically after the pinned slots.
autoHeightfalseBe as tall as the content instead of scrolling. For grids inside a list container; height is then ignored.
rowHeight"56"list: row height.
labelGap"20"list: gap between icon and label.
showSectionHeadersfalselist: A/B/C dividers in the alphabetical part.
showSettingsEntry, settingsLabelfalse, ""list: a settings row after Z.
filterLetterVariable""list: the letter variable an alphabet scrubber writes.
clearVariableOnLaunch""list: variable cleared when an app is launched.

The badge properties badgeMode (""/none, dot, count), badgeColor, badgeTextColor, badgeSize, badgeOffsetX and badgeOffsetY apply to both app_grid and app_launcher and are all formulas. So are the context-menu properties contextMenuBackground, contextMenuTextColor, contextMenuBlur, contextMenuCornerRadius and contextMenuAnimations.

image#

PropertyDefaultMeaning
url""The source, as a formula. https://, asset://<sha256>, app-icon://<package>.
imageScale"crop"crop, fit, fill, fill_width, fill_height, inside, none.
imageAlign"center"center, top, bottom, start, end, top_start, top_end, bottom_start, bottom_end.
imagePlaceholder""Shown while loading or when the source is empty.
imageTint, imageTintMode"", "tint"tint, multiply, overlay, screen.
imageSaturation, imageBrightness"1"Formulas.
imageBlur"0"Blurs the picture (not the backdrop).
imageFlipH, imageFlipVfalse
imageFadeMs"200"0 switches hard.
imageDescription""For screen readers. Empty means decorative.
imageReloadSec"0"Re-fetch interval in seconds for a fixed https:// address; 0 never.

repeater#

PropertyDefaultMeaning
source""rss or custom.
items""custom: literal JSON array, or a formula producing one.
direction"vertical"vertical or horizontal.
rowHeight"56"Vertical: card height, evaluated per card.
itemWidth"120"Horizontal: card width, evaluated per card.
filterFormula""Per entry.
maxItems"0"
scrubVariable""Turns the repeater into a scrub strip.
children[]The card template.

group#

A container. layout: "list" stacks the children and scrolls them together; any other value leaves them positioned by their own x/y. In a list container y has no meaning; order does.

PropertyDefaultMeaning
layout"grid"list for a stacking, scrolling container; free for free placement.
spacing"0"Gap between children, in dp.
children[]

input_field#

PropertyDefaultMeaning
placeholder""
hintColor"'#88FFFFFF'"
writeVariable""The variable the typed text is written into. Works both ways: when something else writes that variable (a clear button with set_variable, clearVariableOnLaunch of an app list), the field shows the new value.
autoFocusfalseOpen the keyboard as the page appears.
clearOnLeavetrueClear the text when the page is left.

Text and placeholder use color, fontSize, fontWeight and fontFamily like a text element; the placeholder takes hintColor.

progress_bar#

All values are percentages, 0-100.

PropertyDefaultMeaning
progressFrom, progressValue"0", "50"Start and end of the filled range.
progressColor, trackColorwhite, "'#44FFFFFF'"
progressStyle"linear"linear, circular, dots.
strokeWidth"8"circular: ring thickness in dp.
startAngle, sweepAngle"-90", "360"circular: degrees.
progressTotal"5"dots: how many.
progressDotScale"1.5"dots: size of the active dot.
progressAnimatedfalseEase between values.
progressAnimationType"spring"spring or tween.
progressAnimationIntensity"mittel"sanft, mittel, lebhaft. See progress animation intensity.

effect#

Movement that the phone works out while you watch, instead of a film that plays back. Water is a damped wave equation, the pulse an expansion that fades, the sheen follows the smoothed tilt. Nothing runs while nothing happens: without a touch and without movement, an effect costs no frames at all.

An effect lives in a background and nowhere else. A theme that carries one is rejected: a moving surface is a background, and there is exactly one way to build one. It carries its own picture in url: water bends that picture, light only lights up what is bright in it. Every setting is a formula, so an effect can answer to anything the launcher knows, from the tilt to lock_state to reduce_motion.

PropertyDefaultMeaning
effect""ripple (water), sheen (light that follows the tilt), pulse (rings from a tap).
url""The picture the effect works on. Same addresses as an image.
colorThe colour of the light.
effectStrength"0.6"0 to 1. How far water bends the picture, how bright the light is.
effectSize"48"In dp: the drop of a tap, the width of the light patch or the ring.
effectSpeed"0.5"0 to 1. How fast waves travel, how fast a ring runs outwards.
effectDamping"0.5"0 to 1. How quickly it all comes to rest.
effectX, effectY""Centre of the light in dp; empty is the middle. $screen_width * (0.5 + parallax_x * 0.45)$ makes it follow the tilt.
effectTouchtrueWhether taps and finger trails reach it.

Taps only count when nothing else used them, so tapping an icon does not splash. A finger drawn across the screen always leaves a trail, even while the pages move with it.

Water bending the picture and light masked by the picture need Android 13. On Android 12 the same element shows the picture calmly and the light without the mask, so a theme is never broken, only quieter.

At most three effects move at the same time; anything beyond that stays still.

particles#

A cloud of stars and soft haze, laid out in space and drawn from the point of view of an eye in front of it. When the cloud turns, near stars pass faster than far ones, and that is what makes it look deep. There is no picture behind it, so there is no edge that could slide into view, however many pages a theme has.

The shape is rolled once from particleSeed: the same number always gives the same cloud. The viewing angles are formulas and cost only a new frame when they change, so particleYaw: "$page_position * 6$" turns the galaxy a little with every page. Without a change nothing is drawn at all.

Particles live in a background and nowhere else, like effect.

PropertyDefaultMeaning
particleSeed"1"Any number. Change it for a different cloud of the same kind.
particleCount"2500"Number of stars, at most 6000.
particleArms"2"Spiral arms, 0 to 8. 0 is an even disc.
particleTwist"1.2"How far the arms wind, in turns from the core to the rim. Negative winds the other way.
particleSpread"0.4"How wide the arms are. 0 is a thin line, 1 is about a fifth of the radius.
particleThickness"0.08"Thickness of the disc against its radius. 1 is nearly a ball.
particleCore"0.2"Share of stars in the round core, 0 to 1.
particleColor"'#FFFFFFFF'"Colour of most stars.
particleAccentColor"'#FFFFC48A'"Colour of the rest.
particleAccentShare"0.12"Share of stars in the accent colour, 0 to 1.
particleSize"2"Diameter of the largest star in dp, at the middle depth.
particleHazeCount"16"Soft patches of haze along the arms, at most 48.
particleHazeColor"'#20A9B6D6'"Colour of the haze. Keep the alpha low: patches add up.
particleHazeSize"160"Diameter of a haze patch in dp.
particleRadius"0.85"Radius of the disc as a share of the element width.
particleCenterX, particleCenterY"0.5"Centre of the cloud as a share of the element width and height.
particleTilt"64"Degrees. 0 looks onto the disc from above, 90 along its edge.
particleSpin"0"Degrees the disc turns about its own axis.
particleYaw"0"Degrees the whole cloud turns about the upright screen axis.
particleRoll"-25"Degrees the picture turns in the screen plane.
particleDistance"3"How far the eye is from the centre, in disc radii, 1.2 to 50. Small values give a strong perspective.

Light adds up: stars and haze are mixed additively, so they glow on dark ground and fade out on white.

icon and url_launcher#

icon takes iconName, one of the built-in vector icons. url_launcher takes url and text and opens the address; for anything more elaborate, use a shape or text with an open_url action instead.

alphabet_index#

Kept so older themes keep working. waveAmplitude, bubbleColor, fullAlphabet, showSettingsDot, visibleWhen and clearOnRelease configure it. New themes build the same thing out of a repeater, where every part of it is an ordinary element you can style.

Documentation for launcher 0.1.0-alpha Android 12 and later last updated