ui: the Servers tab is titled Servers, and the voice card names only the channel
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
5 files changed
+33
-16
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user