TeamSpeak streams carry no thumbnail, and a peek would be a join request the streamer sees, so a stream card not being watched now shows the streamer: their avatar, ringed, with what they share, on the art scene tinted with their colour (Art moves from home.slint to components). The compact rows and the phone's Activity cards show the avatar too, and our own stream from the Stream Studio shows the studio's picture while live. StreamItem gets avatar, initials, tint and studio; the kind label is the pure vm::streams::kind_label, used by Home as well. In the demo, the studio going live announces our stream, and studio:live starts the studio itself, so studio:live,server,voice shows the card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
16 lines
430 B
Rust
16 lines
430 B
Rust
//! View models: engine state turned into the Slint structs the screens
|
|
//! show. Pure functions (no window, no engine), unit-tested here; the
|
|
//! models live in `crate::models` and are updated row by row with
|
|
//! [`list::sync`], so a small change redraws only what changed.
|
|
|
|
pub mod avatar;
|
|
pub mod bbcode;
|
|
pub mod chat;
|
|
pub mod home;
|
|
pub mod list;
|
|
pub mod servers;
|
|
pub mod social;
|
|
pub mod streams;
|
|
pub mod studio;
|
|
pub mod tree;
|