ThemeStore Store Docs FAQ
Documentation

Accessibility

Font scaling, contrast, touch targets and screen readers, and which of them the format already handles for you.

On this page

A home screen is the one screen everybody opens dozens of times a day, including people who cannot read small grey text on a photograph. Four things cover almost all of it, and three are one field each.

Respect the font setting#

font_scale is the system text size factor the reader chose. Ignoring it means either clipping text for people who enlarged it or wasting space for people who did not.

Multiply your own sizes by it:

$16 * font_scale$

Then check the layout at a large setting. Text that is sized this way but sits in a fixed height box has only moved the problem: give the box room, or let it size to its content.

Contrast#

Most themes are text on a wallpaper, and a wallpaper is whatever the reader chose. Grey on a photograph can be unreadable without anybody having done anything wrong.

Three ways out, in order of how well they work:

  1. Put text on something. A shape behind it, or a dimAlpha on the background page, gives the text a surface it can rely on.
  2. Follow dark mode. dark_mode in a colour formula covers the two cases the system already knows about.
  3. Avoid mid greys. They are the ones that fail against both a bright and a dark picture.

Full opacity white on a busy photo is still hard to read. If a design needs a faint label, give the label a backdrop rather than lowering its opacity.

Touch targets#

An icon drawn at 24 dp is a 24 dp target unless you make the element bigger than the drawing. Aim for around 48 dp of touchable area even where the visible mark is smaller: give the element the size and let its content sit in the middle.

The same applies to anything carrying a long_press: a gesture nobody can land is a feature nobody has.

Screen readers#

Two fields matter, and one trap.

imageDescription on an image is what a screen reader says. Empty means "decorative, skip it", which is right for decoration and wrong for a picture that carries meaning, such as a feed card's thumbnail.

Labels. An app grid with labels turned off is still readable to a screen reader, because the app's name comes from the system. A row of your own that says something only through a glyph does not have that. Where an icon is the only thing carrying meaning, put a text element next to it, even a small one.

The trap: an element at zero opacity is invisible but still present, still in the reading order, and still catching taps. Use Hidden to remove something. This is worth checking on any theme that fades panels in and out.

What you do not have to worry about#

  • Contrast of app labels in the app list follows the theme's label colour, and the system's own font scaling applies to it.
  • Motion. Nothing in the format animates unless a theme asks for it. If you do add movement, keep it short and tied to a gesture rather than looping, which is both kinder and cheaper. See performance.

Before you publish#

Turn the system font size up two steps and open every page. It is the single check that finds the most, and it takes a minute.

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