New crate voelin-ui-vm with no UI toolkit in its tree: ImageRef (Arc<ImageSource>: File, Rgba, Svg, Memory, None, with size()), Rgb for colours, list::diff(old, new) -> Changes (updates, removals and insertions by index) and the bridge structs as plain Clone + PartialEq values (the 51 of bridge.slint without the account's two, and the 10 of studio-bridge.slint). Strings are Arc<str>, lists Vec. voelin-ui keeps the temporary seam: From impls between every bridge struct and its Slint twin (bind/convert), and bind/rows.rs, which applies Changes to a VecModel and converts only the rows that changed. The viewer's quality list is the first model on it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
14 lines
417 B
Rust
14 lines
417 B
Rust
//! Toolkit-free view models of the desktop client: engine state turned into
|
|
//! plain rows and forms, with the logic that decides what the screens show.
|
|
//! Neither Slint nor GPUI is a dependency; each front end converts these
|
|
//! types (docs/ui.md, "Two crates").
|
|
|
|
pub mod bridge;
|
|
pub mod color;
|
|
pub mod image;
|
|
pub mod list;
|
|
pub mod studio_bridge;
|
|
|
|
pub use color::Rgb;
|
|
pub use image::{ImageRef, ImageSource, Size};
|