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 | tvto pin its look (Keys, remote and form factors).
| Page | Widgets |
|---|---|
| Tokens | Theme, Icon, FormFactor |
| Buttons and values | Button, IconButton, Switch, Slider, StepSlider, Segmented, TimeStepper, TextField, Tappable |
| Lists and pages | Page, PageHeader, ListGroup, ListRow, ControlRow, Scroller |
| Popups and surfaces | Popup, Dialog, Menu, MenuItem, Glass, Wallpaper, Toast, Hud, AppIcon |
| Motion, passcode, camera | PushStack, 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.