diff --git a/crates/voelin-ui/src/app.rs b/crates/voelin-ui/src/app.rs index ea2591c..7d2456b 100644 --- a/crates/voelin-ui/src/app.rs +++ b/crates/voelin-ui/src/app.rs @@ -288,6 +288,8 @@ pub(crate) struct Models { pub pins: Rc>, pub topics: Rc>, pub topic_messages: Rc>, + /// The quality choices of the watched stream. + pub qualities: Rc>, /// Shown when there is no chat. pub no_chat: Rc>, } @@ -304,6 +306,7 @@ impl Models { pins: Rc::default(), topics: Rc::default(), topic_messages: Rc::default(), + qualities: Rc::default(), no_chat: Rc::default(), }; bridge.set_servers(ModelRc::from(models.servers.clone())); @@ -315,6 +318,7 @@ impl Models { bridge.set_pins(ModelRc::from(models.pins.clone())); bridge.set_topics(ModelRc::from(models.topics.clone())); bridge.set_topic_messages(ModelRc::from(models.topic_messages.clone())); + bridge.set_viewer_qualities(ModelRc::from(models.qualities.clone())); bridge.set_messages(ModelRc::from(models.no_chat.clone())); models } diff --git a/crates/voelin-ui/src/appearance.rs b/crates/voelin-ui/src/appearance.rs index 8f82162..ca53583 100644 --- a/crates/voelin-ui/src/appearance.rs +++ b/crates/voelin-ui/src/appearance.rs @@ -8,7 +8,7 @@ use tracing::warn; use crate::app::{App, AppearanceForm, Bridge, Nav, Theme}; use crate::images; use crate::settings::{ - ThemeChoice, UI_FONT_SCALE, UI_IMAGE_CACHE_MB, UI_NARROW_BREAKPOINT, UI_THEME, + ThemeChoice, UI_FONT_SCALE, UI_IMAGE_CACHE_MB, UI_MEMBERS_WIDTH, UI_NARROW_BREAKPOINT, UI_THEME, }; impl App { @@ -23,7 +23,12 @@ impl App { let t = ui.global::(); t.set_mode(theme.as_str().into()); t.set_font_scale(scale); - ui.global::