Skip to main content

Design guidelines

For every screen of Taunus, in both form factors (the device profile's form_factor, see section 18):

  • Tablet (tab): the Echo Show 8 (2nd gen), 8" touch display, 1280 × 800 landscape, about 189 ppi, seen from arm's length or across a kitchen counter, touch plus the on-screen keyboard. A Bluetooth keyboard works too.
  • TV (tv): a remote (D-pad, OK, Back, Home, volume, power) or a keyboard, seen from the sofa.

There is one UI: every screen works by touch and by keys on both. Sections 1–17 describe the tablet look; section 18 says what changes with keys and on TV.

Based on Settings (settings/), the home screen and Recents (shell/ui/shell.slint; home/ is the older launcher for the Python shell) and Calendar (calendar/), studied in code and live on the device (text size "Larger", 25 Nov 2026). Tokens and widgets are in theme/slint and imported from @taunus/index.slint. Where the apps disagree, the decisions are in Decisions. The Audit is at the end.

In flux (another change is under way, so the look may change): Settings Developer, Security, passcode and About pages, and the shell's lock screen and dialogs. Line numbers there may drift.

1. Principles​

  1. Readable from 1–2 m. Anything that tells you something (state, time, a value) must be at least Theme.body and have at least 4.5:1 contrast. Theme.caption is only for extra detail.
  2. One finger, no precision. Targets are at least 48 px, rows at least 56 px, and separate targets are at least 8 px apart. A whole row is the target, not the small control at its end.
  3. Nothing hides behind the keyboard. While you type, the field, its error and the button that submits must all be above Theme.keyboard-y.
  4. Always a way back. There is no system back gesture, so every sub-page, popup and sheet has its own Back or Cancel, always in the same place.
  5. One pattern per job. Use one confirmation, one back button, one empty state and one popup. Build them from @taunus and don't copy them into each app.
  6. Quiet surfaces, one accent. Glass and wallpaper are for the shell. Apps use opaque surfaces. The accent marks what is active or primary, and nothing else.

2. Layout grid, margins and safe areas​

Grid. Use multiples of 8 px (Theme.gap = 8). Allowed steps: 4, 8, 12, 16, 24, 32, 48. The one fixed exception is the 20 px inset for rows, group titles and footers (ListRow, ListGroup, ControlRow). Treat it as a token. Suggestion: add Theme.inset: 20px.

SurfaceMarginsNotes
App window (Settings, Calendar, Clock)24 px left, right and bottom; 32 px topsettings/ui/app.slint:31-32, calendar/ui/app.slint:226-227
Two-pane appssidebar 380 px, gap 24 px, content fills the rest (820 px)Settings, Calendar and Clock all use this. Keep it.
Content pane24 px between page header and first group, and between groupsPage (settings/ui/pages/page.slint)
Home screen64 px sides, clock at y 56, buttons at y 64shell/ui/shell.slint:47,66-101
Dialog / Popup card28 px padding, 14–16 px between itemsDialog, Popup

Safe areas.

AreaReserved forRule
Bottom 32 px (y ≥ 768)navigation pill (drawn at y ≈ 783, 140 × 5 px)No buttons or tap targets there. Content may scroll under it, but a sheet's last line must end at y ≤ 776.
Top-right corner, x ≥ 1060, y ≤ 48privacy indicator (46 × 28 at 1230, 10; it expands to about 180 × 170)Keep controls out of it. The home buttons start at y 64.
Keyboard, y ≥ Theme.keyboard-y (docked: 470)on-screen keyboard (docked height 330 px)See section 10.
Top 0–140 px, centreinfo banner (HudWindow), shown for a short timeNothing important that must stay visible while it shows.
TV: 64 px left/right, 40 px top/bottom (Theme.safe-x, safe-y)overscanEverything interactive and all text inside. Wallpaper and backgrounds bleed to the edges. The nav pill is not there on TV.

3. Type scale​

Font: Inter (Theme.font). Sizes scale with Settings > Display > Text size (Theme.text-scale: Small 1.0, Default 1.2, Large 1.4, Larger 1.65, Largest 1.9). Small text scales fully. title and display scale half as much.

TokenBaseDefaultLargerWeightUse for
Theme.display647085300Big numbers only: home clock (× 1.5), lock clock (× 1.3), always-on clock, alarm (× 2.2), Microsoft code.
Theme.title242632700Page title (PageHeader), app name in the sidebar, the question on a full-page step. One per pane.
Theme.headline182230600–700Dialog/popup heading, month name, empty-state heading, home date, HUD title.
Theme.body151825400 (600 in buttons)Row titles, values, body text, button labels, field text. The default.
Theme.caption121420400 (600 for group titles)Row subtitles, group titles, footers, weekday names, chips. Never the only place a state is shown.

Rules:

  • Make text bigger by moving up a step. Don't multiply a token. Existing exceptions: Theme.body * 1.1 in HudWindow and Theme.display * 0.6 in Setup.
  • No hard-coded pixel sizes for text. Exceptions: the keypad digits (keypad.slint, 32 px) and the on-screen keyboard. Today the privacy panel deviates (see Audit).
  • Weights: 300 for display numbers, 400 for body text, 500 for secondary emphasis (home date, HUD), 600 for labels and buttons, 700 for titles and headings.
  • Decision D11: title must stay clearly larger than headline at every step (see Audit #6).

4. Colour and surfaces​

All colours come from Theme. Rust sets accent, on-accent, background, surface and surface-high from the wallpaper palette (taunus_wallpaper::scheme(); accent is at least 4.5:1 on surfaces). Everything else is derived from those.

RoleTokenUse for
Window backgroundTheme.backgroundApp windows, sheets
Group / cardTheme.surfaceListGroup, calendar month, empty-state card, opaque Glass
Raised controlTheme.surface-highText fields, tonal buttons, slider tracks, keys, switch track (off)
Primary textTheme.textTitles, row titles, values you act on
Secondary textTheme.text-dim (≈ 6.9:1)Subtitles, values, group titles, footers and notes
FaintTheme.text-faint (≈ 3.2:1)Only disabled text, placeholders and chevrons. Not for text people must read.
AccentTheme.accent / on-accentOne primary button per view, selected state (switch on, selected day, Segmented), focus ring, progress
Accent tintTheme.accent-softSelected sidebar row, "now" event, StepSlider fill
DangerTheme.danger / on-dangerDestructive button, destructive row (title and icon), error text, wrong passcode
Divider / outlineTheme.outlineRow dividers (inset 20 px, or 72 px after an icon), field and card edges
PressedTheme.pressedOverlay while a finger is down
ScrimTheme.scrimBehind dialogs and popups

Glass vs opaque. Glass (blurred wallpaper, 50 % tint, light edge) is only for surfaces drawn directly over the wallpaper: home buttons, power menu, voice panel, Recents controls, HUD and toast on the home screen. Over an app, or anywhere the wallpaper isn't behind it, use Glass { opaque: true; } or Theme.surface. App windows never show the wallpaper.

Text on the wallpaper is white (#ffffff; secondary 85 %) over Wallpaper { dim: 0.22 }. Don't put dim or faint text straight on the wallpaper.

Category colours. The icon chips in the Settings sidebar and the account kinds use fixed hues (#6aa7ff, #ffb35c, #ff7a8a, #6fd49a, #c39bff, #a8b0bd, #e8a27c). Use them only for top-level navigation and kinds of things. Rows inside a page use the default accent chip, or Theme.text-dim for neutral items.

Contrast minimums. Text people must read: 4.5:1. Large text (≥ headline 600): 3:1. Icons that carry meaning: 3:1. Disabled items are exempt.

5. Touch targets and spacing​

ItemSizeToken / source
Any tappable thing≥ 48 × 48Theme.touch
List row≥ 56, grows with text (max(56, body × 2.9), 72 at Larger)Theme.row
Standalone icon on the home screen56 × 56home gear and power buttons
Buttonsheight 48, pill shaped. 56 in bottom bars (Setup). 72 for alarm Stop/Snooze.Button
Keypad key84 × 84 with 28/18 px gapsKeypad
Calendar dayfull cell (≈ 51 × 54) with a 42 px visible circleDayCell
  • Gap between separate targets: at least 8 px. Use 12 px between buttons in a row (see D-buttons).
  • Hit area ≥ visual. A small visual, such as a switch, chevron, privacy pill or keyboard hide chevron, still needs a 48 px hit area. Put the TouchArea on the whole row or on an invisible 48 px box.
  • Press feedback within 120 ms on everything tappable: Theme.pressed overlay and/or a scale (0.96 buttons, 0.92 icon buttons, 0.9 app icons).

6. Lists, groups, headers and titles​

PageHeader (lists.slint): title (title, 700), optional subtitle (body, dim), optional back arrow (48 px, Icon.arrow-back) to the left of the title. One per pane. The subtitle states the page's current status in a few words ("Connected", "Searching for devices…") or what the page is for. Don't repeat the title.

ListGroup: a Theme.surface card with radius 20 (radius-group), an optional title above it (caption 600, text-dim, inset 20) and an optional footer below it (caption, inset 20). Explanations go in the footer, not in loose text between groups.

ListRow: optional 36 px icon chip (22 px glyph), title (body), optional subtitle (caption, dim, one line, elided), trailing element:

TrailingMeansTap does
chevron (+ optional value)opens a page or a flownavigates
switchon/off settingtoggles (whole row)
valueread-only factnothing (or a hidden gesture)
checkthe current/connected itemselects
radioone of severalselects
busywork in progress for this rownothing
noneimmediate action (e.g. "Turn screen off")acts

Rules:

  • Within one group, either every row has an icon or none does, so titles line up.
  • The first row of a group has divider: false. The rest have dividers. Use divider: i > 0 in for loops.
  • Row titles end in "…" when the action asks before acting ("Restart…", "Factory reset…").
  • A destructive row uses danger: true. Its title and icon are Theme.danger.
  • A disabled row is dimmed entirely (title, subtitle, icon, trailing), not just the title.
  • Sliders and step sliders go in a ControlRow (label left, current value right, control below).
  • Calendar agenda draws a day's events as one group, row by row (EventRow rounds the first and last). Day headings look like group titles. This is the model for any long list with sections.

7. Buttons​

Button { kind: ButtonKind.… }, always pill shaped, 48 px high, label body 600, optional 20 px icon on the left.

KindUse forExample
filledThe one primary action of a view or dialogAdd, Connect, Restart, Add account (empty state), Stop (alarm)
tonalSecondary actions that stay on screenToday, Sync now, Accessibility, New alarm
textCancel, Skip, Back, low-weight actionsCancel in every dialog/popup
dangerThe confirming button of a destructive action. Only inside a confirmation.Power off, Remove account

Rules:

  • Order: right-aligned, primary on the right and Cancel to its left. Use 12 px spacing (HorizontalLayout { alignment: end; spacing: 12px; }). Exception: full-page centred steps (Setup welcome) centre the buttons.
  • At most one filled or danger button per view.
  • Labels are verbs, one or two words, sentence case. No glyph arrows (‹ ›) in labels. Use the icon property or PageHeader's back arrow.
  • A disabled button (enabled: false) needs a visible reason close by, such as the note "8 to 63 characters".
  • Page-level actions that change the view ("Today", "New alarm") go to the right of the PageHeader as a tonal button, vertically centred on the title.
  • "Add another item" in a list is the last row of that list with Icon.add (Accounts). An empty list also gets a filled button in its empty state.

8. Toggles, sliders and steppers​

ControlUse whenNotes
Switch in a ListRow { trailing: switch }on/off, takes effect right awayThe whole row toggles. Never a bare Switch. If the system must confirm first, the switch follows the stored state, not the tap (Developer).
Slider in a ControlRowcontinuous level (brightness, volume)52 px thick, icon inside, relative drag. Show the value (e.g. "54 %") in the ControlRow value. Use an icon that matches the state (volume-off at 0). Sets Gesture.held so the page doesn't scroll.
StepSlider in a ControlRow3–6 ordered steps with names (text size, clock size, banner time)The name of the current step goes in value. Use preview for live preview, changed to save.
Segmented2–3 unordered short choices, all visible (Left / Right)Not used in the apps yet. Prefer it over a StepSlider for unordered options.
Radio rows (trailing: radio)choices that need a subtitle eachSetup wallpaper
TimeStepper in a rowa time of day48 px repeat buttons, 15 min steps, value in headline.
PasscodePromptevery passcode entry (lock screen, app lock, Settings, Setup)The lock screen's layout: lead content (clock, app icon or lock), title, text, dots and Cancel/Confirm in a 380 px column on the left, keypad on the right, centred as one group. Full screen: Settings hides its pages while it shows. Don't place Keypad + PinDots by hand.
CameraViewa live camera picture (video calls, photos, QR codes)Feed it from taunus_camera::Viewfinder; start the viewfinder only while the view is on screen and drop it right after. Shows the reason when there is no picture (cover closed, camera switch off, no camera, error). Black in both themes.

9. Popups, dialogs, sheets and menus​

KindComponentWhenPositionDismiss
DialogDialog (theme), DialogWindow (shell, in flux)A question or confirmation: title, one or two sentences, 2–3 buttonscentred, card 520–560 px, radius-card 28Cancel button. A tap outside = Cancel, except for system security questions (shell).
PopupPopup (settings/ui/popup.slint)A short form of 1–3 fields, or a short task over a list (add account, Wi-Fi password)top-anchored (y = 56), 640 px wide, opaque glassButtons only, so typing is never lost by a stray tap.
SheetGoogleSheet (accounts.slint)Full-window content from somewhere else (web sign-in) or a multi-step flowwhole window, 56 px headerHeader "Cancel" (text button, no arrow) on the left
Menuhome power menu2–5 related actions anchored to a buttonunder its button, glass, rows 64 px, radius 28A tap outside closes it. Irreversible items open a Dialog.
HUD / ToastHudWindow, ToastTransient status (volume, mute, "Saved")HUD at the top centre, Toast at the bottom centreGoes away by itself and takes no input

Common rules:

  • Heading in headline 700 and note in body text-dim. 28 px padding, 14 px between items.
  • Scrim: Theme.scrim for dialogs, popups and sheets. Half of that (≈ 0.25) for menus and the voice panel.
  • Popups and dialogs fade and scale in (Theme.normal, 0.96 → 1). Today they appear without motion.
  • Popup and keyboard (Decision D3): while the keyboard is up, the popup's bottom must stay at or above Theme.keyboard-y − 16. If the content is taller, shorten or scroll the note. Never move the fields or buttons under the keys.
  • Sheet: the content area ends at min(Theme.keyboard-y, 776). Until the content has drawn, show Theme.surface with a centred Spinner and one line ("Opening Google…"), not a blank white panel.
  • Every popup and sheet has Cancel. A popup that can only explain (e.g. "not available") has one button, "Close" or "OK", and is better avoided (disable the entry point instead).

10. Text fields and the on-screen keyboard​

  • TextField: 56 px high, radius-input 14, surface-high, 1 px outline. When focused, a 2 px accent border. Password fields get the reveal button (eye, 48 px).
  • Labels: a form with two or more fields shows a label above each field (caption 600, text-dim, inset 4). The placeholder is only an example ("e.g. http://homeassistant.local:8123"), because it disappears on the first key. A single obvious field (search, "Password for 'X'") may use only the placeholder.
  • The first field takes focus when a popup opens (init => { self.grab-focus(); }). Enter moves to the next field. Enter on the last field submits if the form is valid (FormFields in accounts.slint is the model).
  • Keyboard: docked, 330 px high from y 470 (it can also float). TextField lifts itself above the keyboard (Theme.keyboard-*, set by taunus_theme::attach!). That is the safety net, not the layout:
    • Popups sit at the top (D3). Their buttons must also stay above the keyboard.
    • Sheets and pages shrink or scroll so that the focused field and its submit button are visible.
    • Validation and errors show under the field, above the keyboard.
  • Fields for e-mail, URLs and numbers should ask for the matching keyboard layer (@, ., /, :). See Audit.
  • Never auto-submit while typing. Keep a disabled primary button until the input is valid.
  • With keys a TextField has two states. Selected: a focus stop with the focus look. Editing: caret, input method and on-screen keyboard. Touch goes straight to editing.
    • From selected: OK edits with the caret at the end; a printable key edits and is typed.
    • While editing: Left/Right move the caret and leave the field at its ends; Up/Down leave a single-line field; Back returns to selected (the text stays); Enter is accepted.
  • TV keyboard: docked only (no float, drag or snap). While it is up the shell takes the remote's keys (input-method keyboard grab): the D-pad moves a highlight over the keys (wrapping along a row), OK types, OK held 450 ms opens the alternates, Back leaves editing. A key from a hardware keyboard hides it and is typed into the field. On the tablet the keyboard stays touch-only; a hardware keyboard types into the field.

11. Navigation and back​

  • System: the pill handles navigation. Swipe up for Home, swipe up and hold for Recents, flick sideways for the previous app. Double-tap the home background to turn the screen off. There is no back gesture.
  • Keys: Back (remote) or Esc goes back one level (18.5); in an app with nothing left to close it returns to the app that opened it, else home. Home goes home; Home twice within 400 ms opens Recents. The PageHeader arrow and the Back key do the same thing; on TV the arrow is hidden.
  • Two-pane apps: the sidebar picks top-level pages and the selected row shows accent-soft. Choosing a sidebar row resets the sub-views (go() in settings/ui/app.slint:26).
  • Sub-pages push in the content pane with PushStack / PushPage (optionally a Hero). They are left with the PageHeader back arrow (Decision D1). The header must stay visible when the page scrolls.
  • Popups and sheets close with Cancel. They don't navigate.
  • Jumps between apps (Calendar → Settings > Accounts) land on the exact target (the "Add account" list, not the overview). The flick back must return to where you came from.
  • Scroll position is kept when you return from a sub-page (Display ↔ Always-on display does this).

12. Empty, loading and error states​

StatePatternModel
Empty list or pageCard on Theme.surface: 48 px icon (text-faint), heading (headline 600), one line why and what to do (body, dim), optional filled buttonCalendar Empty (calendar/ui/app.slint:162-178). Suggestion: move it to @taunus as EmptyState.
Empty groupOne plain row saying so ("No computers yet", "No other apps installed")Developer
Loading, row-scopedtrailing: busy on that rowNew wallpaper, Wi-Fi connect
Loading, popupSpinner + "Checking…" left of the buttons, primary button disabledAccountPopup
Loading, page or sheetCentred Spinner + one line on Theme.surface. Never a blank area.missing, see Audit
Searching (Bluetooth, Wi-Fi scan)busy on the master switch row while searching, then an empty-group row with a hintmissing, see Audit
Error, inlineTheme.danger body text under the cause, plus "Try again" (filled) when retrying helpsAccountPopup, GoogleSheet
Error, itemIcon chip Icon.error in Theme.danger, short subtitleAccounts list
Service downDisable the entry point and say why in its footerAccounts (acc-online)
DoneToast at the bottom, one line, about 3 s ("Account added", "Screenshot saved")Toast exists but no app uses it yet

13. Motion​

One curve everywhere: cubic-bezier(0.2, 0, 0, 1).

TokenDurationUse for
Theme.fast120 msPress feedback, colour and border changes, step slider knob
Theme.normal240 msSwitch, Segmented, fades, popup and menu in/out, home ↔ app fade
Theme.slow / Motion.page380 msPage push (PushStack), Hero flights
springs (Rust)—Anything that follows the finger: pill, Recents, keyboard drag, always-on display
  • Sub-pages push from the right (PushPage). The page underneath moves 12 % left and fades.
  • An app opens out of its icon (LaunchWindow) and returns into its card in Recents.
  • Use Hero when one element clearly continues on the next page (always-on display clock icon → clock).
  • Switching sidebar pages has no animation (instant). That is fine. Don't add slides there.
  • Don't use one-off durations. Today there are 260 ms (TextField lift), 350 ms ease-out (lock, in flux), 400 ms (dialog progress) and 700 ms (Setup leaving). Use the tokens, or name new ones in Motion.

14. Icons​

  • Material Symbols Rounded, weight 400, from Icon.* (theme/slint/icons.slint). Add new ones as described in README.md. Never use text glyphs for icons (‹ › × +).
  • Sizes: 20 in buttons, 22 in row chips (36 px chip) and chevrons, 24 standalone (Theme.icon, IconButton), 26–32 in menus, HUD and dialogs, 48 for empty states.
  • Colour: Theme.text for plain icons, accent or category colour in chips, Theme.danger for destructive items, #ffffff on the wallpaper.
  • One meaning per icon:
MeaningIcon
Screen offdark-mode
Power offpower-settings-new
Restartrestart-alt
Passcode / lockedlock
Launcher appsapps
Layout boundsgrid-view
Addadd
Errorerror
Event / calendarevent / calendar-month

Change the places that differ (see Audit #23).

15. Copy and tone​

  • Short, plain words. Sentence case everywhere: "Add account", not "Add Account".
  • Say what happens, not how it works: "Turns the screen off now", not "Blanks the backlight". Keep technical names in Developer.
  • No file paths, config keys or vendor jargon outside Developer ("Azure app ID with public client flows", "~/.config/taunus/accounts.json").
  • Call the device "the device" ("Restart the device?"). Call the system "Taunus".
  • Buttons: verbs ("Add", "Connect", "Remove account"). Confirmation titles are questions that name the thing ("Remove 'Work calendar'?"). The danger button repeats the verb.
  • Footers: one or two short sentences. If it takes more, the setting needs a better name or a subtitle.
  • Use "…" (U+2026) for rows that ask before acting and for ongoing work ("Syncing…", "Checking…").
  • Numbers and units: "3 s", "54 %", "3.4 GB free of 3.6 GB", 24-hour time "09:00".

16. Component checklist (what to use)​

Page (Settings) → PageHeader + Scroller + ListGroup / ListRow / ControlRow; controls Button, IconButton, Switch, Slider, StepSlider, Segmented, TimeStepper, TextField, Spinner, Chip; modal Dialog, Popup; feedback Toast, Hud; shell Glass, Wallpaper, AppIcon, NavPill; navigation PushStack, PushPage, Hero, Page (header + scroller + Back); modal Popup (top-anchored form), Menu / MenuItem; focus Tappable (any custom tap target: makes it a focus stop), FocusRing, FocusTrap, FocusGroup, FocusPane. A raw TouchArea cannot be reached with keys: wrap it in Tappable. If an app needs something new, add it to @taunus first, then use it. Today Dialog, Hud, Toast, Segmented and Chip exist in the theme but the apps redraw their own versions (Audit #29).

17. Decisions where the apps disagree​

#TopicDecisionWhyPlaces that deviate
D1Back on sub-pagesPageHeader { back: true } arrow left of the title, in a header that does not scroll awayOne spot to look for back. There is no system back gesture. A text button below the title wastes a row and looks like content.settings/ui/pages/accounts.slint:63-68,285 (text "‹ Accounts" button); settings/ui/pages/page.slint:16 (header scrolls with the page); accounts.slint:214 ("‹ Cancel": drop the ‹)
D2Confirming destructive or irreversible actionsAlways a Dialog: question title, Cancel (text) + verb (danger or filled)One pattern people learn. Easy to reach. Works the same in every app. A centred card focuses attention.settings/ui/pages/power.slint:18-37 (whole page swapped); accounts.slint:268-274 ("Tap again to remove"); developer.slint:76-83 (no confirm, in flux); shell/ui/shell.slint:143-175 with shell/src/main.rs:1484-1494 (Power off from the menu, no confirm)
D3Popup positionForms: top-anchored Popup, height capped above the keyboard. Questions: centred Dialog.The keyboard comes up from the bottom. A centred form would be covered.popup.slint:17-20 (no cap); settings/ui/setup.slint:247-287 (own centred popup copy: use Popup or Dialog)
D4ScrimTheme.scrim for modals, half for menusOne depth language.popup.slint:14 (0.55); setup.slint:249 (0.55); shell.slint:185 (0.35); shell.slint:801 (0.62, in flux); shell.slint:274 (0.28 Recents, fine as a backdrop)
D5Wi-Fi passwordPasswordPopup in both Settings and SetupKeeps the list and title in view, is keyboard-safe and is one implementation.settings/ui/pages/wifi.slint:42-57 (inline page that blanks the title)
D6Notes and explanationsInside ListGroup { footer }, inset 20, text-dimThey line up with group titles and are readable at a distance.accounts.slint:54-60 (loose text at x 0, faint); theme/slint/lists.slint:36 (footer uses text-faint)
D7Adding items vs page actions"Add …" = last row of the list. View actions ("Today") = tonal button right of the header.A full-width row is a big target where you look for it. View actions belong to the whole page.None in the three apps (Clock "New alarm" sits in the header, which is acceptable as a view-level action)
D8Icons in a groupAll rows or noneTitles line up.settings/ui/pages/security.slint:57-60 ("Change passcode…" without an icon, in flux)
D9Destructive rowsTitle and icon chip in Theme.dangerThe colour must reach the eye before the words.theme/slint/lists.slint:98-103 (chip uses icon-color, not danger); seen at power.slint:16, about.slint:23
D10Screen-off iconIcon.dark-modeThe power symbol means power off. Using it for both invites mistakes.settings/ui/pages/display.slint:87-89; power.slint:11-12
D11Title size at large texttitle scales at least 0.75 × the text-size step (today 0.5)At Larger and Largest, title, headline and body nearly match, so pages lose their structure.theme/slint/theme.slint:51
D12Disabled rowsWhole row at 38 %A half-dimmed row looks tappable.theme/slint/lists.slint:112-136
D13Radii28 cards, dialogs and menus · 20 groups · 14 fields and keys · pill = height / 2Fewer shapes look calmer. These are the README values.shell.slint:139 (menu 24), shell.slint:149 (menu row 16); app icon tiles (24) are an allowed exception
D14Button spacing12 pxIt was 8, 10, 12 and 16 in different places. 12 keeps adjacent pills clearly separate.theme/slint/surfaces.slint Dialog (8), wifi.slint:77 (10), shell.slint DialogWindow (10, in flux), power.slint:29 (16)
D15Where "Turn screen off" livesPower page, home power menu and double-tap. Not in Display.Put an action where people expect it, once in Settings.display.slint:86-91
D16Home screen codeshell/ui/shell.slint HomeWindow is the referencehome/ is the old launcher for the Python shell. It already differs (no power button, header width).home/ui/home.slint:46,52-64

18. Form factors, remote and keyboard​

One UI, focus everywhere. Theme widgets bring their keys and their focus look with them, so an app built from @taunus needs no TV code. If an app has to write if tv for navigation, the platform is missing something.

The form factor comes from, in order: $TAUNUS_FORM_FACTOR (PC, tests), the Developer override (Settings › Developer › Form factor, after a restart), the device profile's form_factor, else tab. Slint reads it as Theme.tv; Rust as taunus_core::form::form_factor().

18.1 Keys​

Keys mean the same on both form factors, so a keyboard on the tablet behaves like the remote.

RemoteKeyboardMeaning
D-padarrowsMove the focus. In a value control (slider, segmented, stepper) Left/Right change the value.
OKEnter, SpaceActivate the focused element, on release. Repeats are ignored.
BackEscBack one level (18.5), once per press
Home–Home; twice within 400 ms: Recents (18.6)
Vol +/−, mutemedia keysVolume step with the HUD; mute toggles the speaker
Power–Screen off/on
–Tab / Shift-TabNext/previous stop in reading order, wrapping inside the topmost modal
–PgUp/PgDnScroll a page, focus the first stop in view

System keys go through labwc keybinds to taunus-shell --key …, whatever has the focus. tdt press KEY sends a key like a real one (for trying TV mode without a remote).

18.2 When the focus shows​

  • Two modalities per process: pointer (touch or mouse used last) and keys. TV starts in keys, the tablet in pointer.
  • A touch hides the focus look (the focused element stays). The first arrow or OK after a touch only shows the focus, on the element last touched if it is still there, and is swallowed. Back and typing are never swallowed.
  • Touch never moves the keyboard focus (focus-on-click: false) and never hides the on-screen keyboard.

18.3 The focus look​

ElementTablet (keys)TV
Compact controls (Button, IconButton, Switch, Slider, Segmented, TimeStepper, keypad key, TextField)3 px accent ring outside, 3 px gapButtons and keys: inverse (fill focus-ink, content focus-on-ink) and a lift (lift-button 1.06, lift-icon 1.1); danger buttons keep red. Value controls: 4 px ring, knob 1.15.
Rows (ListRow, MenuItem)Highlight inside the row (inset 4, concentric radius), 10 % text tint, 2 px accent ringSame shape, inverse, content recoloured, no lift
Tiles (AppIcon, Recents card)3 px white ringLift (lift-tile 1.1, lift-card 1.05) + 4 px white ring
  • Selected and focused differ: a selected row is accent-soft; focus draws over it.
  • Outer rings are cut off by a clipping edge. Anything flush with a scroller edge uses the inner style.
  • Colour and opacity animate with Theme.fast, none with animations off.

18.4 Moving the focus​

  • Spatial: the next stop must lie in the pressed direction; stops overlapping the focused one's extent across that direction win, then the nearest (13·major² + minor²), then reading order. No wrap at edges (the TV keyboard wraps along a row).
  • Value controls keep their axis also at their limits: holding Right on a slider never jumps away.
  • Scrolling: the focused stop is scrolled into view with Theme.focus-margin around it, so the next one peeks in. With nothing focusable that way, the scroller moves half a page (text pages, footers).
  • Out of view counts as reachable; hidden, transparent, disabled and zero-size elements do not.
  • Containers (element ids, or inherit the component when it is a component root):
    • focus-trap / FocusTrap: modal; only stops inside the topmost one count. Popup, Dialog, Menu, passcode.
    • focus-default: where the focus starts (the element or its first stop).
    • focus-group / FocusGroup: entered at its selected stop, else the one used last (sidebars, lists).
    • focus-pane / FocusPane: a group that Back leaves, back to where the focus came from.

Where the focus starts: current focus if valid → a page that just opened: its first stop → the stop nearest one that was removed → history → focus-default → a selected stop → the first stop.

SituationLands on
App opensIts default (Settings: the selected sidebar row; Browser: the page)
DialogFirst button (the safe one comes first)
Popup with a fieldThe field, editing; on TV the keyboard comes up
Sub-page pushed / poppedIts first stop / the row that opened it
Popup closedThe element that opened it
RecentsThe previous app's card (from home: the first card)
Lock or passcode keypadKey 5
Alarm ringingStop
HomeFirst app

18.5 Back​

The first level that applies wins; none needs app code.

  1. The focused widget: a TextField being edited stops editing.
  2. The topmost modal (Popup, Dialog, Menu, sheet): cancel, like its Cancel button. A system question answers with its safe button; with none, Back does nothing.
  3. A sub-page (Page { back: true }): go back, like the header arrow.
  4. A focus-pane: the focus returns to where it came from (the selected sidebar row).
  5. The window: an app asks the shell (back), which returns to the app that opened it if that still runs, else goes home. Shell surfaces have their own (Recents closes; lock and setup ignore it).

Example in Settings: Display › Always-on display → Back → Display → Back → sidebar row "Display" → Back → home.

18.6 Home and Recents​

WhereHomeHome twice
In an appHomeRecents, the app just left focused
On homeFocus the first app, close menus, scroll to the topRecents
Locked, a system question, a passcode, SetupIgnored–
Screen offWake–

The first press never waits for a second one. In Recents: Left/Right move between cards, Up reaches a card's close chip, Down the bottom row (Clear all, Screenshot), OK selects, Back closes.

18.7 TV layout and copy​

  • Logical canvas 1280 × 720; the athena override stays 1280 × 800 (fine for testing).
  • Everything interactive and all text inside the safe area (Theme.safe-x 64, safe-y 40). Theme.window-pad-* gives app windows the right margins on both.
  • Hidden on TV: the nav pill, gesture hints, double-tap to sleep (DoubleTap is inert), PageHeader arrows, keyboard float/drag, the Display › Navigation settings.
  • Default text size Large; the user can change it.
  • Copy names no gesture where it can ("Select", "Choose"). A string that must name one gets a .tv variant, chosen with Theme.tv ? @tr("x.tv") : @tr("x") and added with tools/add-translation.py.

18.8 Pinning a form factor​

  • Every theme widget has form-factor: FormFactor.auto | tab | tv. A pin changes the look and touch-only behaviour (ring vs inverse, lift, sizes, DoubleTap, the PageHeader arrow), never the keys: a pinned element is still a stop. Containers pass their value to parts they draw (ListRow → its Switch), not to @children.
  • A window pins itself with Theme.window-form-factor (the gallery toolbar stays tablet while it previews TV).

18.9 Remote, browser​

  • Pairing a remote: on TV, while no remote or keyboard is connected, the shell keeps Bluetooth on and looking; an unpaired input device that advertises (a remote in pairing mode) is paired, trusted and connected by itself. Pairings live in /var/lib/bluetooth on /data, so they survive updates.
  • Browser: a remote has no pointer, so on TV the D-pad moves an arrow over the page (faster while held; pushed against an edge it scrolls). OK taps where it points, held while moving it drags. Back goes back a page, then the app's Back. Up at the top of a page that no longer scrolls moves to the toolbar. Every embedded WebView gets it (taunus_browser::bind!).

18.10 Writing a widget that works with keys​

  • An input widget inherits FocusScope (a stop) or wraps its target in Tappable; focus-on-click: false.
  • OK/Space: the press arms, the release fires (so the press that opened a popup never fires its default button). Reject keys you don't use: arrows and Escape must bubble to the engine and containers.
  • Value controls accept Left/Right always, also at their limits, and reject Up/Down.
  • Draw the focus with FocusRing { show: (has-focus && Focus.visible) || Focus.preview-all; tv: …; inner: … }; inner: true when flush with a clipping edge.
  • Add form-factor and resolve tv from it (Theme.is-tv(form-factor)); set accessible-role and accessible-label (tests and tdt layout use them).
  • Modal containers inherit FocusTrap and handle Escape; sidebars FocusGroup or FocusPane.
  • Every window calls taunus_theme::attach! once (apps: attach!(ui); shell windows pass their own back).
  • Check it in the gallery (cargo run --release -p taunus-gallery, toolbar Tablet · TV) with arrows, Enter, Esc.

Audit​

Seen on the device at text size Larger (the current setting) and in code. Screenshots are in /tmp/claude-1000/-home-oc-Projects-taunus/116d8f12-792c-4762-9001-779ae0a4e486/scratchpad/design/ (temporary). Ranked by impact: how often you would hit it × how bad it is when you do.

#ScreenWhat I saw (screenshot)Why it hurtsSuggested fix
1Settings › Accounts › add popup (any form)With the keyboard up, the Home Assistant popup runs to y ≈ 490 while the keyboard starts at 470. Only the card padding is hidden today, but an error line, the "Checking…" row or a larger text step pushes Cancel / Add under the keys (21-ha-popup.png; iCloud has 10 px to spare, 19-icloud-popup.png).You can't submit or cancel without first hiding the keyboard, and you don't see the error.settings/ui/popup.slint:17-20: cap the card at Theme.keyboard-y - 16px - y while Theme.keyboard-h > 0, and wrap the note in a Scroller, or collapse it to 2 lines with "More". Or move Cancel / Add into the heading row.
2Settings › Developer › Allowed computers (in flux)A row reads "… · tap to remove" with a chevron. One tap deletes the key immediately (37-developer-bottom.png).The chevron says "open". A stray tap locks the computer out of tdt.settings/ui/pages/developer.slint:76-83, settings/src/pages/developer.rs:88-94: tap opens a Dialog "Remove 172.16.42.x?" with a danger Remove. Trailing none or a delete icon.
3Settings › Accounts › Google sheet(a) About 8 s of a blank white panel with a 28 px spinner in the far corner (24-google-sheet-b.png). (b) With the keyboard up, Google's Next button sits behind the keys and the web view does not shrink (26-google-kbd.png). (c) The white panel runs to y 784, under the nav pill, which is light grey and disappears on white.(a) Looks broken from a distance. (b) The next step is hidden. (c) The pill can't be seen.settings/ui/pages/accounts.slint:206-240: give the content Rectangle height: min(Theme.keyboard-h > 0 ? Theme.keyboard-y : 776px, …) - y. Show Theme.surface + centred Spinner + "Opening Google…" until !WebPage.loading. Bottom padding 24 px.
4Settings sub-pagesThree ways back: the PageHeader arrow (Always-on display, Launcher apps), a text button "‹ Accounts" under the title (18-add-account.png), and "‹ Cancel" (Google). The arrow scrolls off with the page (13-aod-scrolled.png). There is no system back gesture.People hunt for the way back, and after scrolling there is none on screen.D1. page.slint:16: put PageHeader above the Scroller (header fixed). accounts.slint:63-68,285: remove BackButton and set back: Backend.acc-view != "" on the page.
5Settings › Power, Accounts detail, Developer, home power menuFour confirmation styles: page swap with a centred question (32-power-confirm.png); "Tap again to remove"; none for keys; none for Power off from the home menu (50-power-menu.png; the code says "the menu tap was the confirmation"). Power off sits 64 px below Restart.Inconsistent, and one slip from the menu powers off a device that has no easy power button.D2. Use Dialog everywhere. shell/src/main.rs:1484-1494: send "off" and "reboot" to a DialogWindow question. power.slint:18-37, accounts.slint:268-274.
6All apps, text size Larger / LargestAt Larger: title 31.8, headline 29.7, body 24.75, caption 19.8 (10-settings-open.png). Page titles barely stand out. In Calendar, "November 2026" (headline) almost matches the page title. At Largest, headline (34.2) ≈ title (34.8).People who chose large text, likely those viewing from further away, lose the structure.D11. theme/slint/theme.slint:51: title: 24px * (1 + (text-scale - 1) * 0.75) or full scale. Check the sidebar fits (see #9).
7Settings footers, Accounts note, Calendar weekdays and other-month daysAll Theme.text-faint: about 3.2:1 on the background (11-display-scrolled.png, 17-accounts.png, 41-calendar.png).Below 4.5:1 at caption size, so it can't be read across a kitchen. Several footers hold the only explanation of a setting.D6. theme/slint/lists.slint:36 → Theme.text-dim; accounts.slint:57; calendar/ui/app.slint:92 (weekday names) → text-dim. Other-month days (app.slint:61) may stay faint.
8Settings › Accounts › MicrosoftA normal chevron row opens a popup that says to add "microsoft_client_id" to ~/.config/taunus/accounts.json with an "Azure app ID with public client flows". The only button is "Cancel" (22-ms-popup.png).A dead end with developer jargon, unfixable on the device.accounts.slint:91: enabled: Backend.acc-ms-ready, hint "Not available on this device" (like Google at line 85-89). Move the explanation to Developer or docs.
9Settings sidebarAt Larger, 10 entries don't fit: About and Developer are below the fold, and there is no hint that the list scrolls. "Settings" scrolls away with it (10-settings-open.png, 34-sidebar-scrolled.png).Pages you can't see aren't found.settings/ui/app.slint:34-61: fix the sidebar row height at 56 (independent of text step), or cut the group gaps from 20 to 12 and merge into 3 groups. Keep the "Settings" header outside the Scroller. Add a bottom fade when more is below.
10Settings › Wi-FiThe connected network shows no check mark. Only its icon tint and subtitle differ (15-wifi.png).Which network you are on is the main question on this page.settings/ui/pages/rows.slint:13: the row sets trailing: check but never checked, and ListRow only draws the check when checked. Add checked: entry.connected;.
11Settings › Bluetooth"Searching for devices…" over an empty page: no spinner, no result, no hint (16-bluetooth.png).It looks frozen, and people don't know they must put the device in pairing mode.settings/ui/pages/bluetooth.slint:10-28: trailing: busy on the Bluetooth row while discovering, and a group with one row "No devices found yet — put your device in pairing mode".
12Popups and the Wi-Fi passwordForms use placeholders as their only labels ("Apple ID (e-mail)", "Address, e.g. http://…:8123"). They disappear on the first key (19-icloud-popup.png, 21-ha-popup.png).While typing you lose what the field is for and the example format.settings/ui/pages/accounts.slint:111-137: add a caption label above each field (Section 10) and keep the example as the placeholder.
13Settings › Always-on display › Try itDisabled row: the title is faint but the subtitle and chevron look normal (13-aod-scrolled.png).It looks tappable and nothing happens.D12. theme/slint/lists.slint:106-136: opacity: root.enabled ? 1 : 0.38 on the content layout.
14Settings › Power, About"Power off…" and "Factory reset…" have red titles but teal icon chips (31-power.png, 35-about.png).Mixed signal. Red should be the first thing you see.D9. theme/slint/lists.slint:98,103: chip colour root.danger ? Theme.danger : root.icon-color.
15Calendar › Next upTapping "No upcoming events" / the next event starts a sync. With accounts it has a chevron, which promises navigation. The "Accounts" row opens another app.Hidden action, wrong promise, no visible feedback.calendar/ui/app.slint:237-245: tapping selects the event's day in the agenda. Move sync to a refresh IconButton next to "Next up" or in the header, with Spinner while syncing.
16Calendar → Add accountLands on the Accounts overview, not the account chooser. The only way back to Calendar is the sideways flick (42-cal-add-account.png).One extra tap, and an unclear way back.calendar/src/main.rs:381-383: open taunus-settings accounts add (add the argument in Settings). After an account is added from there, go back to the caller.
17Settings › Display, Power page"Turn screen off" uses the power icon (green), and the next row "Power off…" uses the same icon. The home menu uses a moon for the same action. grid-view means "Launcher apps", "Show layout bounds" and "Pictures".Icons stop carrying meaning, and power off looks like screen off.D10 + Section 14. display.slint:87-89, power.slint:11-12 → Icon.dark-mode. developer.slint:34 → Icon.apps. setup.slint:56 → a picture icon (add image from Material Symbols).
18Calendar agendaNo space between the header subtitle and the first card (card at y 129). In Settings, pages leave 24 px (group at y 153) (41-calendar.png vs 15-wifi.png).Looks cramped next to the other apps.calendar/ui/app.slint:184: spacing: 0px → keep 0 between rows but add padding-bottom: 24px to the header HorizontalLayout (188-194), or put a 24 px spacer before the first item.
19Settings › AccountsTitle "Accounts" and group title "Accounts" right below it. The note sits loose at x 428 while group footers start at x 448 (17-accounts.png).Redundant, and a visible misalignment.accounts.slint:36: drop title. accounts.slint:54-60 → ListGroup { footer: … }.
20Settings › Security (in flux)"Change passcode…" has no icon, so its text starts 52 px left of "Passcode" above it (30-security.png).Ragged alignment inside one card.D8. security.slint:57-60: add icon: Icon.pin (or drop the icon from "Passcode").
21Home › privacy indicator46 × 28 px target in the corner (below 48). When expanded it covers the gear and power buttons. Labels are fixed 15 px and don't follow the text size. Off entries are very dim. "Developer mode" nearly touches the right edge. A small stray mark sticks out under the panel (53-privacy-expanded.png).Hard to hit, hard to read, slightly broken look.shell/ui/shell.slint:609-705: 48 px invisible hit box. Use Theme.caption / Theme.body instead of 15 px (627-629, 700). Off rows in text-dim. Right padding ≥ 16. Find the stray element (probably a dot of the folded pill).
22Settings › Sound (and Display brightness)One slider with no value. At 0 the icon still shows "volume up" (28-sound.png).You can't tell muted from low, especially from a distance.settings/ui/pages/sound.slint:9-16: ControlRow { title: "Volume"; value: round(Backend.volume*100) + " %"; }, and icon: Backend.volume < 0.01 ? Icon.volume-off : Icon.volume-up. Same for brightness (display.slint:28-36).
23Popups and dialogs (all)They appear and disappear instantly. Scrims are 0.28, 0.30, 0.35, 0.48, 0.55 and 0.62 in different places.It feels abrupt, and modals don't look like one family.D4, Section 9: fade and scale with Theme.normal. Use Theme.scrim (popup.slint:14, setup.slint:249, shell.slint:185).
24KeyboardNo @ on the main layer for the "Apple ID (e-mail)" field, and two backspace keys are visible (letters and number pad) (19-icloud-popup.png).Extra layer switches for every e-mail or URL. The duplicate key looks like a mistake.Pass an input purpose from TextField (e-mail, URL, number) through input-method to the keyboard (shell/src/osk.rs, kbd crate). Show @ and . on e-mail and URL fields. Keep one backspace.
25Settings scrolling pagesContent is cut hard at y 32 and y 776 with no fade. A group cut through the middle looks broken (11-display-scrolled.png).It reads as a layout glitch, not as "scrolls".settings/ui/pages/page.slint: 24 px gradient fades top and bottom inside the Scroller (when not at the end).
26HomeDouble-tap to turn the screen off only works below the clock. The root DoubleTap is 0 × 0 (tdt layout: DoubleTap { … width: 0px; height: 0px }).It works in one place and not in another.shell/ui/shell.slint:59: DoubleTap { width: 100%; height: 100%; … }.
27HomeWhite clock, date and app labels sit straight on a random wallpaper with a 22 % dim. On light wallpapers (solid colour mode) the labels could fall below 3:1.Today's wallpaper is fine (00-initial.png), but another one may not be.shell/ui/shell.slint:54-57: derive dim from the wallpaper's luminance (taunus-wallpaper scheme), or add a soft text shadow to AppIcon labels and the clock.
28Recents"Clear all" is a plain Rectangle with no pressed state (the screenshot button has one). There is no hint that a card can be flicked up to close it (44-recents.png). Once, a tap on the centred card opened a different app; I could not make that happen again.Missing feedback on a destructive control. Hidden gesture.shell/ui/shell.slint:316-325: pressed tint like the screenshot button (shot-pressed). Consider a short first-use hint.
29Theme vs appsDialog, Hud, Toast, Segmented and Chip from @taunus are used only by the gallery. The shell draws its own HudWindow and DialogWindow. Calendar draws its own "Now" chip (calendar/ui/app.slint:149-158). Setup has its own popup (setup.slint:247-287). home/ is an old copy of the home screen.The look drifts: radii, scrims and spacing already differ.Make the shell windows wrap the theme components. Use Chip for "Now". Use Popup in Setup. Retire home/ui/home.slint or mark it legacy.
30Settings › Wi-Fi password (inline)When iwd asks for a password, the page title and subtitle go blank and the list is replaced by a field (code: wifi.slint:17-18,42-57).Loses context. It is a second implementation of PasswordPopup.D5. Use PasswordPopup in Settings too, with "Cancel" in place of "Skip".
31Calendar, service downCal.online is set but never shown (calendar/ui/app.slint:32). When the accounts service is down, the app silently shows old data.People trust a stale agenda.Show "Can't reach the accounts service" as the Next-up subtitle in Theme.danger, and in the agenda header.
32Calendar header copyWith no accounts the subtitle says "Today · no events" above "Connect your calendars". The empty text repeats "Settings › Accounts" right above a button that goes there.Small contradiction, and extra words.calendar/src/main.rs:212: without accounts, the subtitle is just "Today". app.slint:197: "Add iCloud, Google, Microsoft or another calendar. Your events show up here and the assistant can tell you what's next."
33Settings copy"Restart the Echo Show?" (elsewhere "the device"). Long footers (always-on display × security: 3 lines; system bar: 4 lines). "Skip passcode after always-on display" is long for a row.Inconsistent naming. Long text isn't read at a distance.power.slint:23 → "Restart the device?". Shorten footers to one sentence (security.slint ~65-67, developer.slint ~52, in flux).
34Microsoft popup / one-button popupsThe only button is "Cancel" although nothing was started.Wrong word.If kept: "Close". Better to disable the row (#8).
35Home power menuRadius 24 (menu) and 16 (rows) are off-token. The menu glass over a bright blob gets busy (50-power-menu.png).Small inconsistency.D13: radius 28 / 20. Use tint: 1.4 on the menu's Glass for a calmer background.
36Settings › Display"Turn screen off" appears in both Display and Power.Duplicate. Each extra row makes the page longer at large text.D15: remove it from display.slint:86-91.
37Text field liftWhen a field must float above the keyboard, it animates with a one-off 260 ms and a drop shadow, detached from its page.It works, but it is a fallback that looks unlike the rest.theme/slint/controls.slint:317: use Theme.normal. In pages, scroll the focused field into view (Scroller viewport) before falling back to the lift.

Not audited​

The lock screen, passcode entry and shell dialogs (in flux; I didn't lock the screen). The Setup flow (code only; starting it would change state). The always-on display while it is on. Wi-Fi joins and Bluetooth pairing. The account detail page (no accounts are signed in).