Merge the server screens into the Stream Studio branch

Both sides added to Nav (the studio's open-studio next to the drawers and
the voice view), to App (the studio's state next to the uploads) and to
the development switches (studio[:...] next to voice, pins, topics,
watch); all of them are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 07:14:20 +03:00
commit 55267f88bd
78 files changed
+7058 -700

No files matched your search

+47 -2
View File
@@ -1,12 +1,15 @@
//! The chat view.
//! The chat view: tabs, messages, reactions, pins, topics and files.
use slint::ComponentHandle;
use voelin_model::{ChannelId, ChatTarget};
use crate::app::{Bridge, MainWindow, with_app};
use crate::app::{App, Bridge, MainWindow, with_app};
pub(super) fn wire(ui: &MainWindow) {
let bridge = ui.global::<Bridge>();
bridge.on_search_topics(|text| {
with_app(|app| app.search_topics(text.to_string()));
});
bridge.on_open_channel_chat(|cid| {
with_app(|app| app.open_chat(ChatTarget::Channel(cid as ChannelId), true));
});
@@ -19,4 +22,46 @@ pub(super) fn wire(ui: &MainWindow) {
bridge.on_send_message(|text| {
with_app(|app| app.send_message(text.to_string()));
});
bridge.on_load_older(|| {
with_app(App::load_older);
});
bridge.on_react(|key, emoji| {
with_app(|app| app.react(key, emoji.to_string()));
});
bridge.on_pin(|key, on| {
with_app(|app| app.pin(key, on));
});
bridge.on_download_file(|key, index| {
with_app(|app| app.download_file(key, index));
});
bridge.on_attach_file(|| {
with_app(App::attach_file);
});
bridge.on_open_pins(|| {
with_app(App::open_pins);
});
bridge.on_jump_to_pin(|key| {
with_app(|app| app.jump_to_pin(key));
});
bridge.on_open_topics(|| {
with_app(App::open_topics);
});
bridge.on_open_topic(|id| {
with_app(|app| app.open_topic(id));
});
bridge.on_send_topic_message(|text| {
with_app(|app| app.send_topic_message(text.to_string()));
});
bridge.on_create_topic(|key, title| {
with_app(|app| app.create_topic(key, title.to_string()));
});
bridge.on_open_member(|id| {
with_app(|app| app.open_member(id));
});
bridge.on_member_action(|action| {
with_app(|app| app.member_action(&action));
});
bridge.on_member_volume(|percent| {
with_app(|app| app.member_volume(percent));
});
}
+3 -1
View File
@@ -35,7 +35,9 @@ fn show(ui: &MainWindow, category: i32, list: Vec<PickerEmoji>) {
}
pub(super) fn wire(ui: &MainWindow) {
ui.global::<Images>().on_emoji(|key| images::emoji(&key));
let images_global = ui.global::<Images>();
images_global.on_emoji(|key| images::emoji(&key));
images_global.on_emoji_text(|key| emoji::text_of(&key).into());
let global = ui.global::<Emoji>();
let weak = ui.as_weak();
global.on_load(move || {
+6
View File
@@ -14,6 +14,12 @@ pub(super) fn wire(ui: &MainWindow) {
bridge.on_search(|text| {
with_app(|app| app.search(text.to_string()));
});
bridge.on_search_members(|text| {
with_app(|app| app.search_members(text.to_string()));
});
bridge.on_show_voice_view(|on| {
with_app(|app| app.show_voice_view(on));
});
bridge.on_connect_voice(|| {
with_app(|app| app.connect_voice());
});
+3
View File
@@ -27,6 +27,9 @@ pub(super) fn wire(ui: &MainWindow) {
bridge.on_download_h264(|| {
with_app(|app| app.download_h264());
});
bridge.on_panel_resized(|width| {
with_app(|app| app.panel_resized(width));
});
bridge.on_appearance_changed(|form| {
with_app(|app| app.appearance_changed(&form));
});
+3
View File
@@ -37,4 +37,7 @@ pub(super) fn wire(ui: &MainWindow) {
bridge.on_toggle_fullscreen(|| {
with_app(|app| app.toggle_fullscreen());
});
bridge.on_set_stream_quality(|index| {
with_app(|app| app.set_stream_quality(index));
});
}