Skip to main content

UI components

The Taunus design system is a Slint library in libs/theme/slint, imported as one file:

import { Theme, Icon, Button, ListGroup, ListRow, Page, Popup, … } from "@taunus/index.slint";

Every widget:

  • takes its colours, sizes and timings from Theme, so it follows the wallpaper, the text size and the animations setting;
  • is a focus stop if it can be activated, and draws its own focus ring (tab) or inverse highlight (TV);
  • has form-factor: auto | tab | tv to pin its look (Keys, remote and form factors).
PageWidgets
TokensTheme, Icon, FormFactor
Buttons and valuesButton, IconButton, Switch, Slider, StepSlider, Segmented, TimeStepper, TextField, Tappable
Lists and pagesPage, PageHeader, ListGroup, ListRow, ControlRow, Scroller
Popups and surfacesPopup, Dialog, Menu, MenuItem, Glass, Wallpaper, Toast, Hud, AppIcon
Motion, passcode, cameraPushStack, PushPage, Hero, PasscodePrompt, Keypad, CameraView, Spinner, Chip, DoubleTap, focus helpers

cargo run --release -p taunus-gallery shows all of them live.

//2bi: this reference is generated from doc comments in the .slint files, so it can't drift from the code.