Files
VoelinClient/crates/voelin-ui/src/bind/mod.rs
T
Claude a6caffa579 ui: streams pop out into a window of their own
Pop out now opens ViewerWindow: the player alone, titled with the
stream, which a pin keeps on top of other windows (always-on-top). The
main window goes on; the stream's card on the voice page says it plays
in its own window, with Bring back; closing the window brings it back
too, on the stream's server, and Leave closes it. Pictures go only to
the window that shows the player, so none is scaled twice; full screen
and the cursor follow that window.

The stream callbacks take a Bridge, the models attach to any Bridge,
the theme is copied to every window of its own, and one main-window
close handler, installed at start, closes the studio's and the stream's
windows (the studio installed its own before). Desktop only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 14:20:36 +00:00

28 lines
611 B
Rust

//! Callbacks of the screens, wired to the app. One module per screen or
//! area; each has a `wire` that the window calls once.
mod chat;
mod emoji;
mod pages;
mod servers;
mod settings;
mod social;
pub(crate) mod streams;
pub(crate) mod studio;
use slint::ComponentHandle;
use crate::app::{Bridge, MainWindow, StudioBridge};
/// Connect every callback of the window.
pub(crate) fn wire(ui: &MainWindow) {
servers::wire(ui);
chat::wire(ui);
streams::wire(&ui.global::<Bridge>());
settings::wire(ui);
emoji::wire(ui);
social::wire(ui);
pages::wire(ui);
studio::wire(&ui.global::<StudioBridge>());
}