From d0cd3f6cfd6af3fd8b87dfd3e075aaf5eccf76b2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 18:53:08 +0000 Subject: [PATCH] ui: the Servers tab is titled Servers, and the voice card names only the channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the phone's Servers tab the top bar showed the server's name and counts, which the server card right below it shows too, and the voice card named the server again ("Chill Zone / Nightfall Guild"). The top bar now says Servers, as the Activity and You tabs say their names; the server card stays the one place for the name, the counts, the banner and its Edit server / Add a server menu. The voice card shows only the channel, on desktop too; while connecting, before there is a channel, it shows Connecting… alone. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ --- CHANGELOG.md | 3 +++ crates/voelin-ui/ui/app.slint | 7 +++++-- crates/voelin-ui/ui/shells/common.slint | 9 +++++---- docs/android.md | 14 +++++++------- docs/ui.md | 16 +++++++++++++--- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7709c01..26eea85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -157,6 +157,9 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows Share are one Share button that opens the share menu (a screen, or the Stream Studio) as on desktop. The microphone button says Mic on or Mic off. +- The phone's Servers tab is titled Servers; the server's name and counts + are only in the server card below the server icons, no longer in the top + bar too. The voice card shows only your channel, on desktop too. - Banners: up to 128 MiB, more time on slow hosts, BMP and ICO too, and SVG after a comment or DOCTYPE; pictures larger than 4096 pixels on a side are scaled down. A banner that fails is tried again for as long as diff --git a/crates/voelin-ui/ui/app.slint b/crates/voelin-ui/ui/app.slint index 4ba7a45..e113ab3 100644 --- a/crates/voelin-ui/ui/app.slint +++ b/crates/voelin-ui/ui/app.slint @@ -267,6 +267,9 @@ export component MainWindow inherits Window { && Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length && Bridge.tabs[Bridge.current-tab].kind == 1; banner: Nav.phone-voice ? Bridge.own-channel-banner : self.channel-chat ? Bridge.tabs[Bridge.current-tab].banner : @image-url(""); + // The page's or the tab's name (on the Servers tab the server + // card below names the server); on the Chats tab the server, + // with the chat below it. title: Nav.page == Page.settings ? @tr("Settings") : Nav.page == Page.friends ? @tr("Friends") : Nav.page == Page.messages ? @tr("Messages") @@ -274,14 +277,14 @@ export component MainWindow inherits Window { : Nav.page == Page.events ? @tr("Events") : Nav.phone-voice ? Bridge.own-channel : Nav.page == Page.home || Nav.mobile-tab == MobileTab.home ? Bridge.app-name + : Nav.mobile-tab == MobileTab.servers ? @tr("Servers") : Nav.mobile-tab == MobileTab.you ? @tr("You") : Nav.mobile-tab == MobileTab.activity ? @tr("Activity") : Bridge.server-title; subtitle: Nav.page == Page.settings || Nav.page == Page.friends || Nav.page == Page.messages || Nav.page == Page.library ? "" : Nav.page == Page.events || Nav.phone-voice ? Bridge.server-title : Nav.page == Page.home || Nav.mobile-tab == MobileTab.home ? "" - : Nav.mobile-tab == MobileTab.chat && Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].title - : Nav.mobile-tab == MobileTab.servers ? Bridge.server-stats : ""; + : Nav.mobile-tab == MobileTab.chat && Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].title : ""; back: Nav.phone-voice || Nav.page == Page.settings || Nav.page == Page.friends || Nav.page == Page.messages || Nav.page == Page.library || Nav.page == Page.events; unread: Bridge.unread-total; voice: Nav.phone-voice; diff --git a/crates/voelin-ui/ui/shells/common.slint b/crates/voelin-ui/ui/shells/common.slint index 7964f02..b812af9 100644 --- a/crates/voelin-ui/ui/shells/common.slint +++ b/crates/voelin-ui/ui/shells/common.slint @@ -60,8 +60,8 @@ export component HoldToTalk inherits Rectangle { } } -// "Voice Connected — channel / server", disconnect, and hold-to-talk -// with push-to-talk. +// "Voice Connected" and our channel, disconnect, and hold-to-talk with +// push-to-talk. export component VoiceCard inherits Rectangle { border-radius: Theme.radius-lg; background: Theme.surface-2; @@ -94,8 +94,9 @@ export component VoiceCard inherits Rectangle { font-size: Theme.font-sm; font-weight: Theme.weight-semibold; } - Text { - text: Bridge.own-channel != "" ? Bridge.own-channel + " / " + Bridge.server-title : Bridge.server-title; + // Our channel; none yet while connecting. + if Bridge.own-channel != "": Text { + text: Bridge.own-channel; color: Theme.text-muted; font-size: Theme.font-xs; overflow: elide; diff --git a/docs/android.md b/docs/android.md index 74ae80b..d070f62 100644 --- a/docs/android.md +++ b/docs/android.md @@ -87,13 +87,13 @@ capture, NDK MediaCodec format queries); targetSdk and compileSdk 36. do not recreate it. - **Voice in the background**: while any session has a voice connection, `VoiceService` runs as a foreground service of type `microphone`. Its - notification reads like the app's voice card: the channel as the title, - the server and who is there ("Home · 3 in voice", "just you"), the time - in voice as a chronometer, and Mute, Deafen and Leave, which act on every - voice session; with several servers, "In voice on 2 servers" and their - names. Tapping it opens the voice channel screen (the activity hands the - request to Rust, which queues it until the window runs: - `voelin_ui::request`). Rust drives it from engine events (`foreground.rs`, + notification has the channel as the title, the server and who is there + ("Home · 3 in voice", "just you"), the time in voice as a chronometer, + and Mute, Deafen and Leave, which act on every voice session; with + several servers, "In voice on 2 servers" and their names. Tapping it + opens the voice channel screen (the activity hands the request to Rust, + which queues it until the window runs: `voelin_ui::request`). Rust + drives it from engine events (`foreground.rs`, `Bridge.setVoiceNotification`). Audio itself is cpal on AAudio, as on desktop. - **Sharing the screen**: `voelin_media::capture::default_screen_capture()` diff --git a/docs/ui.md b/docs/ui.md index 2dbe902..eda1a3c 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -147,9 +147,13 @@ Shell pieces (ui/shells/): `DesktopShell` (rail + top bar + panels as server shows its icon or its initials, on a colour no other server has while there are at most ten, kept when a server is added), `TopBar` (the search, starting over the main panel, opens the search like -Ctrl+K; the bell at the right), `MobileShell` (top bar, on the voice screen -with Back, the channel, the people, Chats and More; the page; bottom -navigation), `VoiceCard`, `VoiceButtons` (mute, deafen, share; `gear` adds +Ctrl+K; the bell at the right), `MobileShell` (top bar: the tab's or the +page's name, such as Servers, Activity, You or Settings, the app's name on +Home, the server with the chat below on Chats; on the voice screen Back, +the channel with the server below, the people, Chats and More; the page; +bottom navigation), `VoiceCard` (Voice Connected, or Connecting…, and our +channel; Disconnect, and Hold to talk with push-to-talk; on the phone a tap +opens the voice screen), `VoiceButtons` (mute, deafen, share; `gear` adds the voice settings; `round` and `filled` for the voice view's call bar), `UserCard` (its avatar and name open Settings → My Account), `HoldToTalk`. Pages bring their own title; About is in the settings (and on the phone's @@ -189,6 +193,12 @@ Activity tab, with the streams (the streamer's avatar on their colour, Watch, Show and Leave). The Chat tab counts the server's unread chats; private chats count on the Home tab, where the direct messages are. +The phone's Servers tab (`tab:servers`) is titled Servers: the servers as a +row of icons (a double tap edits one, + adds one), then the server card, the +one place for the server's name, counts and banner, with its menu (Edit +server, Add a server); Connect, or the voice card with our channel (a tap +opens the voice screen); and the channel tree. + The phone's voice screen (`voice` in a phone-sized window, `screens/mobile-voice.slint`) has one header, the shell's top bar: Back (it closes the pins, the topics or the members over the screen first, then the