Backgrounds
Backgrounds are their own thing, separate from themes. How a theme recommends one, what people see when they apply it, and how to keep a theme readable on any picture.
On this page
A theme describes pages, elements and behaviour. A background is what lies behind all pages, on the home screen and on the lock screen. The two are separate, the same way icon packs are: people keep their favourite picture while trying themes, and a theme works on any picture.
What people see#
When someone applies a theme that recommends a background or an icon pack, the launcher asks first. Both are ticked, so a single tap on Apply gives the complete look the author meant. Untick the background and the person keeps their own; untick the icon pack and their current icons stay.
The question only comes when there is something to ask. A theme that recommends nothing, or a background that is already in use, applies straight away.
Backgrounds collect in the library under Your backgrounds, next to the themes. From there a background can be applied on its own, whatever theme is active, or a new one made from a photo.
Making and editing a background#
From a photo in the library turns a picture into a background with depth: the photo lies a little larger than the screen and shifts gently against the tilt of the phone, the way an iPhone wallpaper does. While the phone lies still, it costs nothing.
Edit opens a background in the same editor you use for themes, on its one page. The picture or colour underneath is the page background; everything on top are ordinary elements (images, shapes, text), with the same properties, formulas and animations as in a theme. The preview has sliders for tilt (parallax_x, parallax_y) and for the unlock (lock_state), so you can see a movement frame by frame before it happens on the phone. Elements of a background lie behind all pages and cannot be tapped.
A photo made with depth is a layer like any other: move it, change how far it travels, or remove the formulas to keep it still.
Recommending a background#
A theme never carries a background. It names one, and that is the only way:
backgroundRef points at a background that exists on its own. In the editor, open the always visible layer and pick one from your library under Recommended background. While you build, the reference points at your library (local:). When you publish or export the theme, it becomes store:<entry> if that background is in the store, published by you or installed from there. If it is not, the reference is left out and the theme recommends nothing. The publish sheet tells you so, so you can publish the background first.
A picture on the always visible layer is still a picture of that layer, and it still works: it is what shows when no background is active. It is not a background in the launcher's sense, it does not travel into anyone's library, and it disappears behind a background the moment one is applied. That is the line between the two. Without it there would be two ways to the same result, and a background someone applies would sink into some themes and not others for no reason they can see.
Effects, depth and moving layers belong to a background and are only offered in the background editor. The theme editor points you there instead of offering them twice.
Backgrounds in the store#
Backgrounds have their own tab in the store, next to themes and icon packs. A theme page shows the background it recommends, and applying the theme asks about it like about any other recommendation. The background is downloaded only if you keep it ticked.
Publishing. In the library, tap one of your backgrounds and choose Publish. The launcher renders the whole scene into a still image, the rest image. It is the picture in the store, what the lock screen shows, and what an older launcher shows when it cannot play the scene. If you did not set a tone, it is measured from that image. A published background carries its pictures with it: up to 3 MB per picture and 15 MB in total.
Pictures from the internet. A background may load pictures from a website. Before it does, the launcher asks, and without permission it shows everything else and leaves those pictures out. A background never uses the permissions of the theme it runs under, and the reverse is true as well.
Edited copies. Once you edit a background you installed from the store, its rest image no longer matches, so the launcher falls back to its own approximation until you publish your version.
Finding themes. The theme catalogue can be filtered by background: themes that keep your wallpaper, themes with a still image, and themes with a moving background.
Staying readable#
A theme with dark text on a light picture becomes unreadable when someone keeps a dark photo. The launcher cannot stop that choice, but it can say so: when the recommended background is unticked and its tone differs from the one the person keeps, the dialog points it out.
You do not have to do anything for that. A theme with its own picture is built for that picture, so its tone is measured from it. Only a theme without a picture of its own needs to say what it is built for, with backgroundTone set to dark or light.
What helps more than any hint: design for more than one picture. A soft dimAlpha on the background page, text on glass or on a solid card, and a quick look in the preview with a light and a dark picture.
Things to know#
- Background formulas may read everything built in (time, weather, battery,
parallax_x,lock_state, the page position) and the background's own variables, but not the variables of a theme. A background has to work in any theme. - The launcher cannot read a wallpaper that was set outside it; Android does not allow that. It can read the colour hints of that wallpaper, and that is what the readability hint uses.
- The editor preview shows your theme's own picture, not the background the device happens to use, so you always see what you are building.
Documentation for launcher 0.1.0-alpha Android 12 and later last updated