The shell's top bar is the only header on the voice screen: Back, the channel on its banner, the server below it. ChannelBar and ChatHeader are gone, Pinned Messages and Topics are entries of the More menu, and Leave is only in the bottom bar. The people strip and the scroll cap leave the chat about 320 px at 390 x 844 (it had about 190). With push-to-talk, Hold to talk is the bottom bar's middle control and the composer's microphone button is gone; Go Live and Share are one Share control that opens the share menu, as on desktop; the microphone button reads Mic on or Mic off. The audio form was only filled when the settings opened, so every start showed push-to-talk controls whatever the stored mode; the transmit mode is now set at start and when the setting changes. VOELIN_OPEN=more opens the More menu for screenshots. The menu is not in a layout, so Slint centred it in the bar and it opened 30 px low; it now sits at the bar's corner. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
// What a Share button opens: a quick share of a screen or a window (the
|
|
// share dialog) or the Stream Studio. While a share runs it opens the share
|
|
// dialog right away, to manage it.
|
|
|
|
import { Theme } from "theme.slint";
|
|
import { Icons } from "icons.slint";
|
|
import { PopupMenu } from "components/index.slint";
|
|
import { Bridge } from "bridge.slint";
|
|
import { StudioBridge } from "studio-bridge.slint";
|
|
import { Nav } from "nav.slint";
|
|
|
|
export component ShareMenu inherits Rectangle {
|
|
// The menu's size, to open it above a button.
|
|
out property <length> menu-width: 220px;
|
|
out property <length> menu-height: 2 * Theme.control-height + 2 * Theme.space-2 + 2px;
|
|
width: 0;
|
|
height: 0;
|
|
|
|
// Open at (x, y), relative to this element.
|
|
public function open(x: length, y: length) {
|
|
if Bridge.share-state == "live" || Bridge.share-state == "starting" {
|
|
Nav.open-share();
|
|
} else {
|
|
menu.show(x, y);
|
|
}
|
|
}
|
|
|
|
menu := PopupMenu {
|
|
menu-width: root.menu-width;
|
|
entries: [
|
|
// The studio's stream takes the place of a simple share.
|
|
{ text: @tr("Share screen"), icon: Icons.monitor-up, enabled: !StudioBridge.status.live },
|
|
{ text: @tr("Stream Studio"), icon: Icons.radio, enabled: true },
|
|
];
|
|
activated(i) => {
|
|
if i == 0 {
|
|
Nav.open-share();
|
|
} else {
|
|
Nav.open-studio();
|
|
}
|
|
}
|
|
}
|
|
}
|