diff --git a/crates/voelin-ui/src/dev.rs b/crates/voelin-ui/src/dev.rs index b2aca34..af9df1a 100644 --- a/crates/voelin-ui/src/dev.rs +++ b/crates/voelin-ui/src/dev.rs @@ -387,6 +387,9 @@ fn demo_ui(app: &mut App) { client(9, 1, "Rin"), ]; clients[1].streaming = Some(true); + // Live in other channels (the gateway's directory has their streams). + clients[5].streaming = Some(true); + clients[6].streaming = Some(true); clients[4].input_muted = true; clients[7].away = Some("brb".into()); clients[8].output_muted = true; @@ -1217,19 +1220,47 @@ fn demo_chat(app: &mut App, session: u64) { app.handle_event(Event::Gateway { session, update: GatewayUpdate::Streams { - streams: vec![StreamEntry { - id: "demo-stream".into(), - stream_id: Some("demo-stream".into()), - streamer: UserRef { uid: "demo-2".into(), name: "Lumen".into() }, - client_id: Some(2), - channel: Some(2), - title: "Exploring the Lands Between".into(), - kind: "screen".into(), - started_ms: now - 12 * 60_000, - viewers: Some(12), - source: StreamSource::Registered, - event_id: None, - }], + streams: vec![ + StreamEntry { + id: "demo-stream".into(), + stream_id: Some("demo-stream".into()), + streamer: UserRef { uid: "demo-2".into(), name: "Lumen".into() }, + client_id: Some(2), + channel: Some(2), + title: "Exploring the Lands Between".into(), + kind: "screen".into(), + started_ms: now - 12 * 60_000, + viewers: Some(12), + source: StreamSource::Registered, + event_id: None, + }, + StreamEntry { + id: "demo-stream-2".into(), + stream_id: Some("demo-stream-2".into()), + streamer: UserRef { uid: "demo-6".into(), name: "Talon".into() }, + client_id: Some(6), + channel: Some(3), + title: "Ranked Grind & Vibes".into(), + kind: "screen".into(), + started_ms: now - 41 * 60_000, + viewers: Some(38), + source: StreamSource::Registered, + event_id: None, + }, + StreamEntry { + id: "demo-stream-3".into(), + stream_id: Some("demo-stream-3".into()), + streamer: UserRef { uid: "demo-7".into(), name: "Zeph".into() }, + client_id: Some(7), + channel: Some(4), + title: "Raid prep: gear check".into(), + kind: "camera".into(), + started_ms: now - 8 * 60_000, + viewers: Some(9), + source: StreamSource::Registered, + event_id: None, + }, + ], }, }); let by = |name: &str| UserRef { uid: format!("demo-{name}"), name: name.into() }; diff --git a/crates/voelin-ui/ui/app.slint b/crates/voelin-ui/ui/app.slint index 76606cb..3cd3c9c 100644 --- a/crates/voelin-ui/ui/app.slint +++ b/crates/voelin-ui/ui/app.slint @@ -252,7 +252,9 @@ export component MainWindow inherits Window { if Nav.page == Page.messages && Bridge.dm.open: Conversation { compact: true; } - if Nav.page == Page.library: LibraryPage { } + if Nav.page == Page.library: LibraryPage { + compact: true; + } if Nav.page == Page.events: EventsPage { compact: true; } diff --git a/crates/voelin-ui/ui/assets/art/banner.svg b/crates/voelin-ui/ui/assets/art/banner.svg new file mode 100644 index 0000000..96d763a --- /dev/null +++ b/crates/voelin-ui/ui/assets/art/banner.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/crates/voelin-ui/ui/assets/art/scene-1.svg b/crates/voelin-ui/ui/assets/art/scene-1.svg new file mode 100644 index 0000000..abeb500 --- /dev/null +++ b/crates/voelin-ui/ui/assets/art/scene-1.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/crates/voelin-ui/ui/assets/art/scene-2.svg b/crates/voelin-ui/ui/assets/art/scene-2.svg new file mode 100644 index 0000000..4ec86ec --- /dev/null +++ b/crates/voelin-ui/ui/assets/art/scene-2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/crates/voelin-ui/ui/assets/art/scene-3.svg b/crates/voelin-ui/ui/assets/art/scene-3.svg new file mode 100644 index 0000000..70a0d62 --- /dev/null +++ b/crates/voelin-ui/ui/assets/art/scene-3.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/crates/voelin-ui/ui/assets/art/sidebar.svg b/crates/voelin-ui/ui/assets/art/sidebar.svg new file mode 100644 index 0000000..b20bb02 --- /dev/null +++ b/crates/voelin-ui/ui/assets/art/sidebar.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/crates/voelin-ui/ui/icons.slint b/crates/voelin-ui/ui/icons.slint index 28f18a7..720ee77 100644 --- a/crates/voelin-ui/ui/icons.slint +++ b/crates/voelin-ui/ui/icons.slint @@ -152,4 +152,13 @@ export global Icons { out property zap: @image-url("assets/icons/zap.svg"); // The app mark (full colour, not for colorize). out property logo: @image-url("assets/logo.svg"); + // Painted backgrounds (full colour; assets/art/): the home banner, the + // home sidebar's picture, and pictures for server and stream cards. + out property art-banner: @image-url("assets/art/banner.svg"); + out property art-sidebar: @image-url("assets/art/sidebar.svg"); + out property <[image]> art-scenes: [ + @image-url("assets/art/scene-1.svg"), + @image-url("assets/art/scene-2.svg"), + @image-url("assets/art/scene-3.svg"), + ]; } diff --git a/crates/voelin-ui/ui/screens/events.slint b/crates/voelin-ui/ui/screens/events.slint index bacff99..c0baa8f 100644 --- a/crates/voelin-ui/ui/screens/events.slint +++ b/crates/voelin-ui/ui/screens/events.slint @@ -76,6 +76,8 @@ component RsvpButton inherits Rectangle { // One event as a card. component EventCard inherits Rectangle { in property event; + // The phone: a smaller date, the lines wrap. + in property compact; border-radius: Theme.radius-lg; background: Theme.surface-2.transparentize(0.25); border-width: 1px; @@ -83,14 +85,14 @@ component EventCard inherits Rectangle { accessible-role: AccessibleRole.groupbox; accessible-label: event.title; HorizontalLayout { - padding: Theme.space-4; - spacing: Theme.space-4; + padding: root.compact ? Theme.space-3 : Theme.space-4; + spacing: root.compact ? Theme.space-3 : Theme.space-4; // The date block. VerticalLayout { alignment: start; Rectangle { - width: 64px; - height: 72px; + width: root.compact ? 48px : 64px; + height: root.compact ? 58px : 72px; border-radius: Theme.radius-md; background: Theme.accent-soft; border-width: 1px; @@ -107,7 +109,7 @@ component EventCard inherits Rectangle { Text { text: root.event.day; color: Theme.text; - font-size: Theme.font-2xl; + font-size: root.compact ? Theme.font-xl : Theme.font-2xl; font-weight: Theme.weight-bold; horizontal-alignment: center; } @@ -123,35 +125,30 @@ component EventCard inherits Rectangle { VerticalLayout { horizontal-stretch: 1; spacing: Theme.space-2; - HorizontalLayout { + // The title, then its marks (under it where narrow). + FlexboxLayout { spacing: Theme.space-2; - alignment: start; Text { text: root.event.title; color: Theme.text; font-size: Theme.font-lg; font-weight: Theme.weight-semibold; - overflow: elide; - } - if root.event.live: LiveBadge { - y: (parent.height - self.height) / 2; + wrap: word-wrap; } + if root.event.live: LiveBadge { } if root.event.stream != "" && !root.event.live: Chip { text: @tr("Stream"); icon: Icons.radio; tint: Theme.live; - y: (parent.height - self.height) / 2; } if root.event.soon != "": Chip { text: root.event.soon; icon: Icons.clock; tint: Theme.warning; - y: (parent.height - self.height) / 2; } } - HorizontalLayout { + FlexboxLayout { spacing: Theme.space-4; - alignment: start; HorizontalLayout { spacing: Theme.space-2; Icon { @@ -201,9 +198,9 @@ component EventCard inherits Rectangle { color: Theme.text-secondary; wrap: word-wrap; } - HorizontalLayout { + // The answers, then what can be done; they wrap where narrow. + FlexboxLayout { spacing: Theme.space-2; - alignment: start; RsvpButton { text: @tr("Going"); count: root.event.going; @@ -225,9 +222,6 @@ component EventCard inherits Rectangle { tone: Theme.danger; clicked => { Bridge.rsvp(root.event.id, root.event.rsvp == "not_going" ? "" : "not_going"); } } - Rectangle { - horizontal-stretch: 1; - } if root.event.live: Button { small: true; kind: ButtonKind.primary; @@ -289,15 +283,17 @@ export component EventsPage inherits VerticalLayout { in property compact; padding: compact ? Theme.space-4 : Theme.space-6; spacing: Theme.space-4; + // The phone's top bar already says "Events" and the server. HorizontalLayout { spacing: Theme.space-4; - Icon { + alignment: root.compact ? end : stretch; + if !root.compact: Icon { source: Icons.calendar-days; size: 30px; tint: Theme.accent-text; y: (parent.height - self.height) / 2; } - VerticalLayout { + if !root.compact: VerticalLayout { alignment: center; horizontal-stretch: 1; Text { @@ -339,6 +335,7 @@ export component EventsPage inherits VerticalLayout { alignment: start; for event in Bridge.events: EventCard { event: event; + compact: root.compact; } } } diff --git a/crates/voelin-ui/ui/screens/home.slint b/crates/voelin-ui/ui/screens/home.slint index 51641ad..566fdef 100644 --- a/crates/voelin-ui/ui/screens/home.slint +++ b/crates/voelin-ui/ui/screens/home.slint @@ -10,41 +10,22 @@ import { Bridge, ServerItem, ContactItem, LiveItem, ConversationItem, HappeningI import { Nav, Page, SettingsSection } from "../nav.slint"; import { Icon, Button, ButtonKind, IconButton, Avatar, Status, Chip, SectionHeader, NavItem, Divider, CountBadge, LiveBadge, ScrollView, ListView } from "../components/index.slint"; -// Stars on a painted sky, at fractions of the parent's size. -component Stars inherits Rectangle { - for star[i] in [ - { x: 0.55, y: 0.18 }, { x: 0.62, y: 0.52 }, { x: 0.71, y: 0.1 }, { x: 0.9, y: 0.3 }, - { x: 0.95, y: 0.75 }, { x: 0.83, y: 0.86 }, { x: 0.6, y: 0.8 }, { x: 0.5, y: 0.6 }, - { x: 0.08, y: 0.12 }, { x: 0.3, y: 0.08 }, { x: 0.42, y: 0.3 }, { x: 0.76, y: 0.62 }, - ]: Rectangle { - x: parent.width * star.x; - y: parent.height * star.y; - width: mod(i, 3) == 0 ? 3px : 2px; - height: self.width; - border-radius: self.width / 2; - background: #ffffffb0; - } -} - -// A moon of soft rings (the software renderer clips no gradients to -// circles). -component Moon inherits Rectangle { - in property size: 132px; - width: size; - height: size; - for ring[i] in [ - { f: 1.45, color: #7f95ff14 }, - { f: 1.22, color: #8fa4ff26 }, - { f: 1.0, color: #a9b9ff5a }, - { f: 0.9, color: #c4d0ffa0 }, - ]: Rectangle { - x: (root.size - self.width) / 2; - y: (root.size - self.height) / 2; - width: root.size * ring.f; - height: self.width; - border-radius: self.width / 2; - background: ring.color; - } +// A painted picture (Icons.art-*) covering an area of the given size, cut +// at the sides or at the bottom by the parent's clip. Drawn at its own +// aspect ratio: with `image-fit: cover` the renderer would draw the SVG at +// another size and stretch it, which looks jagged. +component Art inherits Image { + in property cover-width; + in property cover-height; + // 0: keep the left (top) edge, 1: the right (bottom) one. + in property align-x: 0.5; + in property align-y: 0.5; + property ratio: self.source.width * 1.0 / max(1, self.source.height); + width: max(root.cover-width, root.cover-height * root.ratio); + height: self.width / root.ratio; + x: (root.cover-width - self.width) * root.align-x; + y: (root.cover-height - self.height) * root.align-y; + image-fit: fill; } // A quick action of the sidebar: an icon in a rounded square. @@ -94,24 +75,17 @@ component SidebarArt inherits Rectangle { min-height: 140px; border-radius: Theme.radius-lg; clip: true; - background: @linear-gradient(180deg, transparent 0%, #10195088 35%, #2a1d7a80 70%, #0b1330 100%); - Stars { - height: parent.height * 0.6; + Art { + source: Icons.art-sidebar; + cover-width: parent.width; + cover-height: parent.height; + align-y: 1; + } + // Fades into the sidebar at the top. + Rectangle { y: 0; - } - Moon { - size: 70px; - x: parent.width - 100px; - y: 40px; - } - // A horizon of hills. - for hill[i] in [{ x: -0.2, w: 0.8, h: 80px }, { x: 0.35, w: 0.9, h: 110px }, { x: 0.1, w: 0.6, h: 60px }]: Rectangle { - x: parent.width * hill.x; - y: parent.height - hill.h * 0.6; - width: parent.width * hill.w; - height: hill.h; - border-radius: hill.h / 2; - background: i == 1 ? #0a1233 : #0d1640; + height: min(parent.height * 0.3, 90px); + background: @linear-gradient(180deg, Theme.surface 0%, Theme.surface.transparentize(1) 100%); } VerticalLayout { alignment: end; @@ -218,30 +192,42 @@ component HomeBanner inherits Rectangle { border-color: Theme.border-strong; accessible-role: AccessibleRole.groupbox; accessible-label: root.slide == 0 ? Bridge.app-name : root.server.name; - Stars { } - Moon { - size: compact ? 96px : 150px; - x: parent.width - (compact ? 110px : 330px); - y: compact ? 24px : -24px; - visible: parent.width > 480px; + // The night landscape, cut at the left on narrow screens (the moon + // stays); a server's slide takes the server's colour over it. + Art { + source: Icons.art-banner; + cover-width: parent.width; + cover-height: parent.height; + align-x: 1; } - // A glowing horizon. - Rectangle { - y: parent.height - 70px; - height: 70px; - background: @linear-gradient(180deg, transparent 0%, #2b1e8a60 60%, #0b1330a0 100%); + if root.slide > 0: Rectangle { + background: root.server.tint.with-alpha(0.28); } - if !root.compact && root.slide == 0 && root.width > 760px: VerticalLayout { - x: parent.width - 200px; - y: 26px; - width: 170px; - spacing: 0px; - for word in [@tr("Talk."), @tr("Watch."), @tr("Share."), @tr("Together.")]: Text { + if root.compact: Rectangle { + background: @linear-gradient(90deg, #060c2cc0 0%, #060c2c50 55%, transparent 85%); + } + // The phone: swipe between the slides. + if root.compact && root.count > 1: SwipeGestureHandler { + handle-swipe-left: true; + handle-swipe-right: true; + swiped => { + root.slide = self.current-position.x < self.pressed-position.x + ? mod(root.slide + 1, root.count) : mod(root.slide + root.count - 1, root.count); + } + } + // Words down a slope at the right, as written on the sky. + if !root.compact && root.slide == 0 && root.width > 640px: Rectangle { + x: parent.width - 180px; + y: 24px; + width: 160px; + height: 120px; + for word[i] in [@tr("Talk."), @tr("Watch."), @tr("Share."), @tr("Together.")]: Text { + x: i * 14px; + y: i * 26px; text: word; - color: #dfe6ffd0; - font-size: Theme.font-2xl; + color: #e4e9ffd8; + font-size: Theme.font-xl; font-italic: true; - horizontal-alignment: right; } } VerticalLayout { @@ -322,28 +308,29 @@ component HomeBanner inherits Rectangle { } } } - if root.count > 1: IconButton { - x: Theme.space-3; - y: (parent.height - self.height) / 2; + // At the bottom corners, by the dots. The phone has the dots only. + if root.count > 1 && !root.compact: IconButton { + x: Theme.space-2; + y: parent.height - self.height - Theme.space-3; icon: Icons.chevron-left; label: @tr("Previous"); round: true; - size: 34px; + size: 30px; tint: #ffffff; clicked => { root.slide = mod(root.slide + root.count - 1, root.count); } } - if root.count > 1: IconButton { - x: parent.width - self.width - Theme.space-3; - y: (parent.height - self.height) / 2; + if root.count > 1 && !root.compact: IconButton { + x: parent.width - self.width - Theme.space-2; + y: parent.height - self.height - Theme.space-3; icon: Icons.chevron-right; label: @tr("Next"); round: true; - size: 34px; + size: 30px; tint: #ffffff; clicked => { root.slide = mod(root.slide + 1, root.count); } } if root.count > 1: HorizontalLayout { - y: parent.height - 22px; + y: parent.height - (root.compact ? 22px : Theme.space-3 + 20px); height: 10px; alignment: center; spacing: Theme.space-3; @@ -438,16 +425,18 @@ component LiveCard inherits Rectangle { mouse-cursor: MouseCursor.pointer; clicked => { Bridge.watch-live(root.room.session, root.room.id); } } - // The picture: the server's colour, a sky and the kind of stream. + // The picture: a painted scene in the server's colour. Rectangle { y: 0; height: 104px; - background: @linear-gradient(150deg, root.room.backdrop.darker(0.2) 0%, #1c1470 60%, #070c1d 100%); - Stars { } - Icon { - source: root.room.kind == "Camera" ? Icons.camera : Icons.monitor; - size: 40px; - tint: #ffffff40; + clip: true; + Art { + source: Icons.art-scenes[mod(root.room.session + root.room.streamer.character-count, 3)]; + cover-width: parent.width; + cover-height: parent.height; + } + Rectangle { + background: root.room.backdrop.with-alpha(0.2); } Rectangle { y: parent.height - 50px; @@ -544,7 +533,7 @@ component ServerCard inherits Rectangle { min-width: 180px; max-width: 280px; horizontal-stretch: 1; - height: 158px; + height: 170px; border-radius: Theme.radius-lg; clip: true; background: Theme.surface-2; @@ -561,8 +550,16 @@ component ServerCard inherits Rectangle { Rectangle { y: 0; height: 58px; - background: @linear-gradient(160deg, root.server.tint.darker(0.1) 0%, #2a1d7a 60%, #0b1330 100%); - Stars { } + clip: true; + Art { + source: Icons.art-scenes[mod(root.server.id, 3)]; + cover-width: parent.width; + cover-height: parent.height; + align-y: 0.7; + } + Rectangle { + background: root.server.tint.with-alpha(0.22); + } if root.server.live: LiveBadge { x: parent.width - self.width - Theme.space-3; y: Theme.space-3; @@ -602,7 +599,9 @@ component ServerCard inherits Rectangle { overflow: elide; } } + // As tall without chips, so the buttons line up. HorizontalLayout { + height: 26px; spacing: Theme.space-2; alignment: start; padding-top: Theme.space-1; @@ -701,6 +700,83 @@ component ChatCard inherits Rectangle { } } +// A recent chat as a row (the phone): name and time, the last message, +// unread, a chevron. +component ChatRow inherits Rectangle { + in property chat; + height: 62px * Theme.font-scale; + border-radius: Theme.radius-lg; + background: touch.has-hover ? Theme.surface-3 : Theme.surface-2; + border-width: 1px; + border-color: Theme.border; + accessible-role: AccessibleRole.button; + accessible-label: chat.title; + accessible-description: chat.preview; + accessible-action-default => { Bridge.open-conversation(chat.key); } + touch := TouchArea { + mouse-cursor: MouseCursor.pointer; + clicked => { Bridge.open-conversation(root.chat.key); } + } + HorizontalLayout { + padding-left: Theme.space-3; + padding-right: Theme.space-3; + spacing: Theme.space-3; + VerticalLayout { + alignment: center; + Avatar { + size: 42px; + initials: root.chat.initials; + tint: root.chat.tint; + image: root.chat.avatar; + square: root.chat.kind < 2; + label: root.chat.title; + status: root.chat.kind == 2 && root.chat.online ? Status.online : Status.none; + } + } + VerticalLayout { + alignment: center; + horizontal-stretch: 1; + spacing: 2px; + HorizontalLayout { + spacing: Theme.space-3; + alignment: start; + Text { + text: root.chat.title; + color: Theme.accent-text; + font-size: Theme.font-md; + font-weight: Theme.weight-semibold; + overflow: elide; + } + Text { + text: root.chat.time; + color: Theme.text-muted; + font-size: Theme.font-xs; + vertical-alignment: center; + } + } + Text { + text: root.chat.preview; + color: Theme.text; + font-size: Theme.font-sm; + overflow: elide; + } + } + if root.chat.unread > 0: VerticalLayout { + alignment: center; + CountBadge { + count: root.chat.unread; + fill: Theme.accent; + } + } + Icon { + source: Icons.chevron-right; + size: Theme.icon-sm; + tint: Theme.text-muted; + y: (parent.height - self.height) / 2; + } + } +} + // A section title with an icon and a "See All" link. component Section inherits SectionHeader { small: false; @@ -852,7 +928,7 @@ export component HomePage inherits Rectangle { } if root.compact: VerticalLayout { spacing: Theme.space-2; - for chat in Bridge.recent-chats: ChatCard { + for chat in Bridge.recent-chats: ChatRow { chat: chat; } } @@ -881,7 +957,7 @@ export component HomePage inherits Rectangle { } } Section { - text: root.compact ? @tr("Your Servers") : @tr("Your Servers"); + text: @tr("Your Servers"); icon: Icons.layout-grid; action: @tr("Add a Server"); action-clicked => { Nav.add-server(); } @@ -892,13 +968,27 @@ export component HomePage inherits Rectangle { font-size: Theme.font-sm; wrap: word-wrap; } - FlexboxLayout { + if !root.compact: FlexboxLayout { spacing: Theme.space-3; alignment: stretch; for server in Bridge.servers: ServerCard { server: server; } } + // The phone: a row to swipe through. + if root.compact && Bridge.servers.length > 0: Flickable { + height: 170px; + content-width: max(self.width, servers-row.preferred-width); + content-height: self.height; + servers-row := HorizontalLayout { + spacing: Theme.space-3; + alignment: start; + for server in Bridge.servers: ServerCard { + width: 220px; + server: server; + } + } + } if !root.compact: Section { text: @tr("Recent Chats"); icon: Icons.messages-square; @@ -1129,11 +1219,13 @@ export component HomeAside inherits Rectangle { // Recordings and clips of the Stream Studio. export component LibraryPage inherits VerticalLayout { - padding: Theme.space-6; + // The phone: its top bar has the title. + in property compact; + padding: compact ? Theme.space-4 : Theme.space-6; spacing: Theme.space-4; HorizontalLayout { spacing: Theme.space-4; - Icon { + if !root.compact: Icon { source: Icons.library; size: 30px; tint: Theme.accent-text; @@ -1142,14 +1234,14 @@ export component LibraryPage inherits VerticalLayout { VerticalLayout { alignment: center; horizontal-stretch: 1; - Text { + if !root.compact: Text { text: @tr("Library"); font-size: Theme.font-2xl; font-weight: Theme.weight-bold; color: Theme.text; } Text { - text: @tr("Recordings and clips from the Stream Studio, in {}", Bridge.recordings-dir); + text: root.compact ? Bridge.recordings-dir : @tr("Recordings and clips from the Stream Studio, in {}", Bridge.recordings-dir); color: Theme.text-secondary; font-size: Theme.font-sm; overflow: elide; diff --git a/crates/voelin-ui/ui/screens/settings.slint b/crates/voelin-ui/ui/screens/settings.slint index 011f310..54d7555 100644 --- a/crates/voelin-ui/ui/screens/settings.slint +++ b/crates/voelin-ui/ui/screens/settings.slint @@ -560,6 +560,7 @@ component QualityCard inherits Card { } Slider { y: (parent.height - self.height) / 2; + horizontal-stretch: 1; minimum: 500; maximum: 20000; step: 250; @@ -571,7 +572,7 @@ component QualityCard inherits Card { } } TextField { - width: 92px; + width: 80px; text: round(Bridge.video.bitrate); input-type: number; label: @tr("Stream bitrate in kbit/s"); @@ -606,19 +607,21 @@ component QualityCard inherits Card { component VoiceSection inherits VerticalLayout { in property wide; + // Two columns of the same width, as in the design (a long device name + // would otherwise widen the left one). if root.wide: HorizontalLayout { spacing: Theme.space-5; VerticalLayout { + width: (parent.width - Theme.space-5) / 2; spacing: Theme.space-5; - horizontal-stretch: 1; alignment: start; MicrophoneCard { } OutputCard { } PermissionsCard { } } VerticalLayout { + width: (parent.width - Theme.space-5) / 2; spacing: Theme.space-5; - horizontal-stretch: 1; alignment: start; CameraCard { } VideoCard { }