//! Interactive demo launcher.
//!
//! Runs `ui/demo.slint` — the component-browser app showing every
//! Neon component with live controls + a dark/light toggle. The
//! demo is its own binary, structurally separate from the
//! `slint-ui-system` library: the lib exposes Rust helpers + a
//! Slint library path; this binary is one of many possible
//! consumers (the simplest one available in-tree).
//!
//! Run with: `cargo run`.
include_modules!;
use ComponentHandle;
// Hook the demo's `DemoWindow` + Slint `Theme` global into the
// library's generic theme helpers. After this `impl_theme_access!`
// expansion, `slint_ui_system::theme::set_dark_mode(&demo, …)`
// and friends work on `DemoWindow` exactly like they will on any
// consumer's `MainWindow`.
impl_theme_access!;