voelin-ui: open the Stream Studio from the Share button

The studio had a button of its own in the top bar (and the phone's
header), apart from the Share button. The Share buttons (the voice
buttons on the desktop, Go Live on the phone) now open a small menu:
"Share screen", the quick share of a screen or a window as before, or
"Stream Studio". While a share runs they open its dialog directly, as
before; while the studio is live, "Share screen" is off and the button
shows the live state. The separate studio buttons are gone.

Checked headless on the demo UI: the menu opens above the button, and
each entry opens the share dialog or the studio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 18:59:51 +03:00
1 parent 146502c9ca
commit cacb023ccf
6 files changed
+68 -28

No files matched your search

+12 -6
View File
@@ -4,6 +4,8 @@ import { Theme } from "../theme.slint";
import { Icons } from "../icons.slint";
import { Bridge } from "../bridge.slint";
import { Nav, SettingsSection } from "../nav.slint";
import { StudioBridge } from "../studio-bridge.slint";
import { ShareMenu } from "../share-menu.slint";
import { Icon, IconButton, Avatar, Status } from "../components/index.slint";
// A rounded panel of the frame (sidebar, main area, right panel).
@@ -131,12 +133,16 @@ export component VoiceButtons inherits HorizontalLayout {
enabled: Bridge.voice-connected;
clicked => { Bridge.set-output-muted(!Bridge.output-muted); }
}
if Bridge.streams-available && Bridge.can-share: IconButton {
icon: Icons.monitor-up;
label: Bridge.share-state == "live" ? @tr("Sharing") : @tr("Share screen");
checked: Bridge.share-state == "live";
size: root.size;
clicked => { Nav.open-share(); }
// A screen or window, or the Stream Studio (ShareMenu).
if Bridge.streams-available && Bridge.can-share: VerticalLayout {
IconButton {
icon: Icons.monitor-up;
label: Bridge.share-state == "live" ? @tr("Sharing") : StudioBridge.status.live ? @tr("Live in the Stream Studio") : @tr("Share or go live");
checked: Bridge.share-state == "live" || StudioBridge.status.live;
size: root.size;
clicked => { share-menu.open(0, - root.size - share-menu.menu-height - 4px); }
}
share-menu := ShareMenu { }
}
IconButton {
icon: Icons.settings;
-7
View File
@@ -218,13 +218,6 @@ export component TopBar inherits Rectangle {
}
}
}
IconButton {
icon: Icons.radio;
label: @tr("Stream Studio");
checked: Nav.page == Page.studio;
y: (parent.height - self.height) / 2;
clicked => { Nav.open-studio(); }
}
IconButton {
icon: Icons.users;
label: @tr("Members");
-9
View File
@@ -117,15 +117,6 @@ export component MobileShell inherits Rectangle {
overflow: elide;
}
}
IconButton {
icon: Icons.radio;
label: @tr("Stream Studio");
round: true;
filled: true;
checked: Nav.page == Page.studio;
y: (parent.height - self.height) / 2;
clicked => { Nav.open-studio(); }
}
IconButton {
icon: Icons.bell;
label: @tr("Notifications");