Files
VoelinClient/crates/voelin-ui/ui/components/index.slint
T
Claude e40bce40e8 voelin-ui: design system, shells and view models for the new design
The single 1700-line app.slint becomes a design system and screens that
later waves can compose:

- theme.slint: colour, radius, spacing and type tokens (dark and light,
  a runtime font scale); icons.slint: Lucide icons as tintable images.
- components/: Button, IconButton, TextField, SearchBox, Select, Toggle,
  Slider, SegmentedTabs, Avatar, badges, Card, Meter, NavItem, ListItem,
  PopupMenu, Tooltip, Modal, Toast, ResizeHandle, Spinner, RichText and
  the EmojiPicker.
- shells/: the desktop frame (server rail, top bar, sidebar with the user
  card) and the phone frame with a bottom navigation, switched at a
  breakpoint from the settings.
- screens/: today's screens re-skinned (channels, chat, streams panel and
  viewer, settings page, home, dialogs, phone pages); all callbacks and
  properties keep their behaviour. Navigation state is the Nav global.

On the Rust side app.rs keeps setup and event glue; servers.rs, chat.rs,
settings_page.rs and appearance.rs hold the logic, vm/ the pure view
models, bind/ the callbacks, dev.rs the development switches. Models are
created once and updated row by row (vm::list::sync); each chat tab owns
its lines model, so a message appends one row. Emoji come from the
bundled Twemoji archive through a size-bounded image cache, split into
runs that wrap with the text. New settings ui.theme, ui.font_scale,
ui.narrow_breakpoint and ui.image_cache_mb apply live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-28 02:22:25 +00:00

21 lines
1.1 KiB
Plaintext

// All components, for screens: import { Button, Card, ... } from "../components/index.slint";
// The catalogue is in docs/ui.md.
export { Icon, Spinner } from "icon.slint";
export { ButtonKind, FocusRing, Button, IconButton, ActionButton } from "button.slint";
export { TextField, Kbd, SearchBox, Field } from "text-field.slint";
export { Select } from "select.slint";
export { Toggle, ToggleRow, RadioRow } from "toggle.slint";
export { Slider } from "slider.slint";
export { SegmentedTabs, TabItem } from "tabs.slint";
export { Status, Avatar } from "avatar.slint";
export { CountBadge, LiveBadge, Chip, Dot } from "badge.slint";
export { SectionHeader, Card, Divider, Banner } from "card.slint";
export { Meter, SpeakingBars } from "meter.slint";
export { NavItem, ListItem } from "list-item.slint";
export { MenuEntry, PopupMenu, Tooltip, Modal, Toast, ResizeHandle } from "overlay.slint";
export { RichText, EmojiPicker } from "emoji.slint";
// Virtualised lists and scrolling come from the standard widgets (styled by
// the fluent-dark style); ListView builds only the visible rows.
export { ListView, ScrollView } from "std-widgets.slint";