Painted home pictures; even settings columns; events fit the phone
The home page drew its banner, the sidebar's picture and the cards from rectangles and dots, far from the night landscapes of the design. They are SVG pictures now (assets/art: a banner with a moon and a cabin, a mountain range for the sidebar, three scenes for the server and stream cards), drawn at their own aspect ratio: with `image-fit: cover` the software renderer draws an SVG at another size and stretches it, which looks jagged. The banner's arrows sit by its dots as in the design, and the phone swipes between its slides. On the phone the recent chats are rows with the time, unread count and a chevron, and the servers a row to swipe through. Voice & Video's two columns are of the same width (a long device name widened the left one) and the bitrate slider takes the free space. An event's title, times and answers wrap instead of being cut on the phone, where the page and the Library no longer repeat the top bar's title. The sample data has three live streams, so the home's live row and friend activity look as they would on a busy server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d86732c2c1
commit
5770dc5da2
11 files changed
+329
-137
No files matched your search
+44
-13
@@ -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() };
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 460" preserveAspectRatio="xMidYMid slice"><defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#0a1648"/><stop offset="0.45" stop-color="#1b1766"/>
|
||||
<stop offset="0.75" stop-color="#2b1a78"/><stop offset="1" stop-color="#0c1a52"/></linearGradient>
|
||||
<radialGradient id="glow" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#9aa8ff" stop-opacity="0.55"/><stop offset="0.6" stop-color="#6f74ff" stop-opacity="0.18"/>
|
||||
<stop offset="1" stop-color="#6f74ff" stop-opacity="0"/></radialGradient>
|
||||
<radialGradient id="moon" cx="0.38" cy="0.35" r="0.75">
|
||||
<stop offset="0" stop-color="#dfe5ff"/><stop offset="0.5" stop-color="#a7b2f2"/>
|
||||
<stop offset="0.85" stop-color="#6a72d0"/><stop offset="1" stop-color="#4b4fae"/></radialGradient>
|
||||
<linearGradient id="night" x1="0" y1="0" x2="1" y2="0.3">
|
||||
<stop offset="0.35" stop-color="#1c1f6e" stop-opacity="0"/><stop offset="1" stop-color="#1c1f6e" stop-opacity="0.55"/></linearGradient>
|
||||
<radialGradient id="dusk" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#a24bff" stop-opacity="0.55"/><stop offset="1" stop-color="#a24bff" stop-opacity="0"/></radialGradient>
|
||||
<radialGradient id="warm" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#ffb35c" stop-opacity="0.6"/><stop offset="1" stop-color="#ffb35c" stop-opacity="0"/></radialGradient>
|
||||
<linearGradient id="shade" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0" stop-color="#060c2c" stop-opacity="0.9"/><stop offset="0.38" stop-color="#060c2c" stop-opacity="0.55"/>
|
||||
<stop offset="0.6" stop-color="#060c2c" stop-opacity="0"/></linearGradient>
|
||||
<linearGradient id="far" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#3a3fae"/><stop offset="1" stop-color="#171c5c"/></linearGradient>
|
||||
<linearGradient id="mid" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#262a86"/><stop offset="1" stop-color="#0d1240"/></linearGradient>
|
||||
</defs><rect width="1600" height="460" fill="url(#sky)"/><circle cx="518" cy="50" r="0.6" fill="#fff" opacity="0.35"/><circle cx="1314" cy="31" r="1.8" fill="#fff" opacity="0.35"/><circle cx="1456" cy="71" r="0.6" fill="#fff" opacity="0.9"/><circle cx="669" cy="79" r="1.8" fill="#fff" opacity="0.9"/><circle cx="95" cy="187" r="0.8" fill="#fff" opacity="0.35"/><circle cx="923" cy="131" r="0.8" fill="#fff" opacity="0.35"/><circle cx="891" cy="44" r="1.2" fill="#fff" opacity="0.5"/><circle cx="865" cy="188" r="1.8" fill="#fff" opacity="0.5"/><circle cx="165" cy="188" r="0.8" fill="#fff" opacity="0.7"/><circle cx="156" cy="235" r="1.8" fill="#fff" opacity="0.35"/><circle cx="990" cy="164" r="1.8" fill="#fff" opacity="0.9"/><circle cx="1244" cy="154" r="1.2" fill="#fff" opacity="0.7"/><circle cx="480" cy="262" r="0.8" fill="#fff" opacity="0.35"/><circle cx="919" cy="173" r="1.0" fill="#fff" opacity="0.9"/><circle cx="461" cy="323" r="0.6" fill="#fff" opacity="0.9"/><circle cx="264" cy="113" r="1.2" fill="#fff" opacity="0.9"/><circle cx="63" cy="221" r="1.8" fill="#fff" opacity="0.7"/><circle cx="544" cy="116" r="1.2" fill="#fff" opacity="0.9"/><circle cx="110" cy="31" r="1.0" fill="#fff" opacity="0.9"/><circle cx="1115" cy="21" r="1.0" fill="#fff" opacity="0.9"/><circle cx="455" cy="127" r="1.0" fill="#fff" opacity="0.35"/><circle cx="1505" cy="117" r="1.8" fill="#fff" opacity="0.35"/><circle cx="790" cy="72" r="1.0" fill="#fff" opacity="0.5"/><circle cx="1181" cy="131" r="1.2" fill="#fff" opacity="0.35"/><circle cx="266" cy="133" r="1.0" fill="#fff" opacity="0.5"/><circle cx="1311" cy="285" r="1.0" fill="#fff" opacity="0.9"/><circle cx="1578" cy="225" r="1.2" fill="#fff" opacity="0.5"/><circle cx="241" cy="58" r="0.8" fill="#fff" opacity="0.5"/><circle cx="19" cy="274" r="0.8" fill="#fff" opacity="0.7"/><circle cx="451" cy="48" r="1.8" fill="#fff" opacity="0.7"/><circle cx="976" cy="105" r="0.8" fill="#fff" opacity="0.35"/><circle cx="731" cy="287" r="1.8" fill="#fff" opacity="0.9"/><circle cx="637" cy="130" r="1.2" fill="#fff" opacity="0.9"/><circle cx="100" cy="22" r="0.8" fill="#fff" opacity="0.9"/><circle cx="260" cy="112" r="0.6" fill="#fff" opacity="0.35"/><circle cx="0" cy="50" r="0.6" fill="#fff" opacity="0.7"/><circle cx="982" cy="23" r="0.8" fill="#fff" opacity="0.9"/><circle cx="238" cy="83" r="1.0" fill="#fff" opacity="0.7"/><circle cx="759" cy="38" r="1.2" fill="#fff" opacity="0.9"/><circle cx="769" cy="103" r="0.8" fill="#fff" opacity="0.35"/><circle cx="1199" cy="244" r="1.2" fill="#fff" opacity="0.5"/><circle cx="826" cy="68" r="1.8" fill="#fff" opacity="0.7"/><circle cx="235" cy="179" r="0.6" fill="#fff" opacity="0.7"/><circle cx="1566" cy="285" r="1.0" fill="#fff" opacity="0.7"/><circle cx="1453" cy="117" r="0.8" fill="#fff" opacity="0.7"/><circle cx="1018" cy="202" r="0.8" fill="#fff" opacity="0.5"/><circle cx="1309" cy="244" r="0.8" fill="#fff" opacity="0.5"/><circle cx="828" cy="117" r="0.6" fill="#fff" opacity="0.35"/><circle cx="1264" cy="156" r="0.8" fill="#fff" opacity="0.7"/><circle cx="716" cy="309" r="1.0" fill="#fff" opacity="0.7"/><circle cx="129" cy="34" r="1.2" fill="#fff" opacity="0.5"/><circle cx="540" cy="159" r="1.8" fill="#fff" opacity="0.35"/><circle cx="767" cy="215" r="0.6" fill="#fff" opacity="0.35"/><circle cx="1456" cy="258" r="0.8" fill="#fff" opacity="0.9"/><circle cx="1422" cy="143" r="1.0" fill="#fff" opacity="0.35"/><circle cx="1281" cy="321" r="1.2" fill="#fff" opacity="0.9"/><circle cx="642" cy="312" r="0.8" fill="#fff" opacity="0.5"/><circle cx="1589" cy="9" r="1.8" fill="#fff" opacity="0.9"/><circle cx="1290" cy="48" r="1.8" fill="#fff" opacity="0.9"/><circle cx="1052" cy="116" r="1.8" fill="#fff" opacity="0.5"/><circle cx="34" cy="264" r="0.6" fill="#fff" opacity="0.5"/><circle cx="694" cy="288" r="0.8" fill="#fff" opacity="0.35"/><circle cx="403" cy="97" r="0.8" fill="#fff" opacity="0.7"/><circle cx="415" cy="138" r="0.8" fill="#fff" opacity="0.35"/><circle cx="1456" cy="117" r="1.2" fill="#fff" opacity="0.9"/><circle cx="1323" cy="290" r="0.8" fill="#fff" opacity="0.5"/><circle cx="838" cy="6" r="1.2" fill="#fff" opacity="0.5"/><circle cx="974" cy="256" r="0.8" fill="#fff" opacity="0.5"/><circle cx="226" cy="204" r="0.6" fill="#fff" opacity="0.35"/><circle cx="522" cy="171" r="1.8" fill="#fff" opacity="0.9"/><circle cx="1255" cy="35" r="1.8" fill="#fff" opacity="0.35"/><circle cx="398" cy="91" r="0.6" fill="#fff" opacity="0.9"/><circle cx="899" cy="251" r="0.6" fill="#fff" opacity="0.9"/><circle cx="521" cy="321" r="1.8" fill="#fff" opacity="0.5"/><circle cx="1108" cy="149" r="1.8" fill="#fff" opacity="0.9"/><circle cx="812" cy="82" r="1.8" fill="#fff" opacity="0.7"/><circle cx="1476" cy="295" r="0.8" fill="#fff" opacity="0.9"/><circle cx="219" cy="40" r="1.2" fill="#fff" opacity="0.7"/><circle cx="116" cy="79" r="0.6" fill="#fff" opacity="0.5"/><circle cx="1071" cy="259" r="0.8" fill="#fff" opacity="0.7"/><circle cx="229" cy="291" r="1.2" fill="#fff" opacLine truncated
|
||||
|
After Width: | Height: | Size: 29 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300" preserveAspectRatio="xMidYMid slice"><defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0.4" y2="1">
|
||||
<stop offset="0" stop-color="#13235f"/><stop offset="0.7" stop-color="#3a2a8f"/><stop offset="1" stop-color="#1a1450"/></linearGradient>
|
||||
<radialGradient id="glow" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="0.45"/><stop offset="1" stop-color="#ffffff" stop-opacity="0"/></radialGradient>
|
||||
</defs><rect width="600" height="300" fill="url(#sky)"/><circle cx="81" cy="144" r="0.6" fill="#fff" opacity="0.7"/><circle cx="71" cy="129" r="1.2" fill="#fff" opacity="0.9"/><circle cx="473" cy="16" r="0.6" fill="#fff" opacity="0.9"/><circle cx="260" cy="130" r="0.6" fill="#fff" opacity="0.9"/><circle cx="160" cy="136" r="1.8" fill="#fff" opacity="0.35"/><circle cx="541" cy="5" r="0.6" fill="#fff" opacity="0.35"/><circle cx="563" cy="65" r="0.8" fill="#fff" opacity="0.9"/><circle cx="436" cy="90" r="1.2" fill="#fff" opacity="0.9"/><circle cx="332" cy="59" r="0.8" fill="#fff" opacity="0.9"/><circle cx="571" cy="158" r="1.2" fill="#fff" opacity="0.35"/><circle cx="112" cy="169" r="1.0" fill="#fff" opacity="0.35"/><circle cx="446" cy="152" r="1.8" fill="#fff" opacity="0.9"/><circle cx="305" cy="155" r="0.8" fill="#fff" opacity="0.7"/><circle cx="170" cy="165" r="1.2" fill="#fff" opacity="0.9"/><circle cx="353" cy="6" r="0.8" fill="#fff" opacity="0.9"/><circle cx="249" cy="29" r="1.8" fill="#fff" opacity="0.7"/><circle cx="52" cy="113" r="0.6" fill="#fff" opacity="0.5"/><circle cx="313" cy="67" r="1.2" fill="#fff" opacity="0.35"/><circle cx="282" cy="52" r="1.8" fill="#fff" opacity="0.9"/><circle cx="388" cy="29" r="0.8" fill="#fff" opacity="0.35"/><circle cx="462" cy="92" r="1.8" fill="#fff" opacity="0.5"/><circle cx="243" cy="58" r="1.8" fill="#fff" opacity="0.7"/><circle cx="275" cy="46" r="1.8" fill="#fff" opacity="0.35"/><circle cx="230" cy="146" r="1.8" fill="#fff" opacity="0.5"/><circle cx="311" cy="95" r="1.2" fill="#fff" opacity="0.35"/><circle cx="289" cy="62" r="1.8" fill="#fff" opacity="0.5"/><circle cx="565" cy="70" r="1.0" fill="#fff" opacity="0.9"/><circle cx="208" cy="92" r="1.8" fill="#fff" opacity="0.7"/><circle cx="275" cy="5" r="0.8" fill="#fff" opacity="0.5"/><circle cx="330" cy="31" r="0.6" fill="#fff" opacity="0.7"/><circle cx="19" cy="160" r="0.6" fill="#fff" opacity="0.35"/><circle cx="521" cy="77" r="1.0" fill="#fff" opacity="0.5"/><circle cx="161" cy="136" r="0.8" fill="#fff" opacity="0.7"/><circle cx="174" cy="28" r="1.0" fill="#fff" opacity="0.5"/><circle cx="394" cy="110" r="1.0" fill="#fff" opacity="0.9"/><circle cx="422" cy="84" r="0.6" fill="#fff" opacity="0.35"/><circle cx="187" cy="58" r="0.8" fill="#fff" opacity="0.7"/><circle cx="65" cy="153" r="1.8" fill="#fff" opacity="0.5"/><circle cx="579" cy="73" r="0.6" fill="#fff" opacity="0.5"/><circle cx="11" cy="25" r="0.8" fill="#fff" opacity="0.9"/><circle cx="423" cy="115" r="1.8" fill="#fff" opacity="0.5"/><circle cx="586" cy="107" r="1.8" fill="#fff" opacity="0.9"/><circle cx="134" cy="110" r="1.2" fill="#fff" opacity="0.7"/><circle cx="396" cy="72" r="1.0" fill="#fff" opacity="0.5"/><circle cx="581" cy="149" r="1.0" fill="#fff" opacity="0.35"/><circle cx="515" cy="53" r="1.0" fill="#fff" opacity="0.5"/><circle cx="250" cy="43" r="0.6" fill="#fff" opacity="0.35"/><circle cx="354" cy="37" r="1.8" fill="#fff" opacity="0.9"/><circle cx="103" cy="148" r="1.8" fill="#fff" opacity="0.35"/><circle cx="227" cy="59" r="0.8" fill="#fff" opacity="0.9"/><circle cx="355" cy="84" r="1.2" fill="#fff" opacity="0.7"/><circle cx="302" cy="3" r="1.8" fill="#fff" opacity="0.9"/><circle cx="540" cy="3" r="0.8" fill="#fff" opacity="0.7"/><circle cx="487" cy="96" r="0.8" fill="#fff" opacity="0.7"/><circle cx="258" cy="45" r="0.6" fill="#fff" opacity="0.9"/><circle cx="559" cy="58" r="1.8" fill="#fff" opacity="0.9"/><circle cx="461" cy="91" r="0.6" fill="#fff" opacity="0.35"/><circle cx="51" cy="29" r="1.8" fill="#fff" opacity="0.5"/><circle cx="161" cy="56" r="1.8" fill="#fff" opacity="0.7"/><circle cx="221" cy="58" r="1.0" fill="#fff" opacity="0.5"/><circle cx="484" cy="70" r="90" fill="url(#glow)"/><circle cx="484" cy="70" r="32" fill="#e6eaff" opacity="0.9"/><path d="M0,300 L0,190 L57,219 L110,150 L178,213 L230,200 L281,212 L330,130 L381,201 L450,190 L532,216 L600,160 L600,300 Z" fill="#ffffff" opacity="0.08"/><path d="M0,300 L0,230 L80,243 L150,200 L227,256 L300,235 L358,252 L420,205 L506,234 L600,225 L600,300 Z" fill="#050819" opacity="0.65"/><path d="M-10.0,234.0 L-2.6,245.3 L-6.9,243.0 L-0.6,256.7 L-6.1,254.4 L1.4,268.1 L-5.2,265.7 L3.4,279.4 L-4.4,277.1 L5.4,290.8 L-8.0,290.8 L-8.0,300.0 L-12.0,300.0 L-12.0,290.8 L-25.4,290.8 L-15.6,277.1 L-23.4,279.4 L-14.8,265.7 L-21.4,268.1 L-13.9,254.4 L-19.4,256.7 L-13.1,243.0 L-17.4,245.3 Z" fill="#040714"/><path d="M10.8,194.5 L21.3,212.6 L15.2,209.0 L24.1,230.8 L16.4,227.1 L27.0,248.9 L17.6,245.2 L29.8,267.1 L18.8,263.4 L32.7,285.2 L12.8,285.2 L12.8,300.0 L8.8,300.0 L8.8,285.2 L-11.1,285.2 L2.8,263.4 L-8.3,267.1 L4.0,245.2 L-5.4,248.9 L5.2,227.1 L-2.6,230.8 L6.4,209.0 L0.3,212.6 Z" fill="#040714"/><path d="M28.1,202.8 L38.8,219.5 L32.6,216.1 L41.7,236.2 L33.8,232.8 L44.6,252.9 L35.0,249.5 L47.5,269.7 L36.3,266.3 L50.4,286.4 L30.1,286.4 L30.1,300.0 L26.1,300.0 L26.1,286.4 L5.8,286.4 L19.9,266.3 L8.7,269.7 L21.2,249.5 L11.6,252.9 L22.4,232.8 L14.5,236.2 L23.6,216.1 L17.4,219.5 Z" fill="#040714"/><paLine truncated
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300" preserveAspectRatio="xMidYMid slice"><defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0.4" y2="1">
|
||||
<stop offset="0" stop-color="#0f2a55"/><stop offset="0.7" stop-color="#1f5f8f"/><stop offset="1" stop-color="#0b2240"/></linearGradient>
|
||||
<radialGradient id="glow" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="0.45"/><stop offset="1" stop-color="#ffffff" stop-opacity="0"/></radialGradient>
|
||||
</defs><rect width="600" height="300" fill="url(#sky)"/><circle cx="574" cy="161" r="0.6" fill="#fff" opacity="0.35"/><circle cx="51" cy="142" r="1.0" fill="#fff" opacity="0.7"/><circle cx="364" cy="103" r="1.8" fill="#fff" opacity="0.5"/><circle cx="600" cy="109" r="1.8" fill="#fff" opacity="0.7"/><circle cx="327" cy="76" r="1.0" fill="#fff" opacity="0.35"/><circle cx="523" cy="62" r="1.0" fill="#fff" opacity="0.9"/><circle cx="254" cy="150" r="0.8" fill="#fff" opacity="0.5"/><circle cx="142" cy="4" r="1.0" fill="#fff" opacity="0.5"/><circle cx="82" cy="87" r="1.8" fill="#fff" opacity="0.5"/><circle cx="597" cy="76" r="1.2" fill="#fff" opacity="0.7"/><circle cx="474" cy="60" r="1.2" fill="#fff" opacity="0.5"/><circle cx="573" cy="68" r="1.2" fill="#fff" opacity="0.5"/><circle cx="294" cy="157" r="1.8" fill="#fff" opacity="0.7"/><circle cx="397" cy="77" r="1.2" fill="#fff" opacity="0.7"/><circle cx="341" cy="156" r="1.2" fill="#fff" opacity="0.9"/><circle cx="395" cy="160" r="0.8" fill="#fff" opacity="0.7"/><circle cx="464" cy="82" r="1.0" fill="#fff" opacity="0.9"/><circle cx="187" cy="35" r="1.8" fill="#fff" opacity="0.7"/><circle cx="560" cy="106" r="0.6" fill="#fff" opacity="0.7"/><circle cx="436" cy="154" r="0.8" fill="#fff" opacity="0.35"/><circle cx="35" cy="111" r="1.0" fill="#fff" opacity="0.5"/><circle cx="409" cy="156" r="1.8" fill="#fff" opacity="0.5"/><circle cx="512" cy="42" r="0.8" fill="#fff" opacity="0.35"/><circle cx="254" cy="122" r="0.6" fill="#fff" opacity="0.35"/><circle cx="217" cy="29" r="0.6" fill="#fff" opacity="0.35"/><circle cx="69" cy="11" r="0.6" fill="#fff" opacity="0.35"/><circle cx="224" cy="22" r="0.8" fill="#fff" opacity="0.5"/><circle cx="314" cy="0" r="1.8" fill="#fff" opacity="0.35"/><circle cx="476" cy="42" r="0.6" fill="#fff" opacity="0.35"/><circle cx="207" cy="105" r="0.6" fill="#fff" opacity="0.7"/><circle cx="202" cy="5" r="1.2" fill="#fff" opacity="0.35"/><circle cx="541" cy="128" r="1.8" fill="#fff" opacity="0.5"/><circle cx="284" cy="38" r="1.0" fill="#fff" opacity="0.35"/><circle cx="15" cy="134" r="0.8" fill="#fff" opacity="0.9"/><circle cx="292" cy="56" r="1.0" fill="#fff" opacity="0.7"/><circle cx="157" cy="165" r="0.6" fill="#fff" opacity="0.5"/><circle cx="402" cy="43" r="0.8" fill="#fff" opacity="0.5"/><circle cx="102" cy="77" r="0.8" fill="#fff" opacity="0.35"/><circle cx="597" cy="40" r="1.2" fill="#fff" opacity="0.35"/><circle cx="150" cy="101" r="1.8" fill="#fff" opacity="0.7"/><circle cx="154" cy="72" r="1.8" fill="#fff" opacity="0.35"/><circle cx="91" cy="65" r="0.8" fill="#fff" opacity="0.35"/><circle cx="307" cy="15" r="0.6" fill="#fff" opacity="0.35"/><circle cx="12" cy="128" r="0.6" fill="#fff" opacity="0.5"/><circle cx="15" cy="114" r="1.2" fill="#fff" opacity="0.7"/><circle cx="321" cy="65" r="0.8" fill="#fff" opacity="0.9"/><circle cx="255" cy="4" r="1.8" fill="#fff" opacity="0.35"/><circle cx="529" cy="158" r="1.8" fill="#fff" opacity="0.5"/><circle cx="552" cy="113" r="1.2" fill="#fff" opacity="0.7"/><circle cx="12" cy="163" r="0.6" fill="#fff" opacity="0.7"/><circle cx="174" cy="167" r="1.0" fill="#fff" opacity="0.7"/><circle cx="11" cy="117" r="0.6" fill="#fff" opacity="0.35"/><circle cx="184" cy="143" r="0.6" fill="#fff" opacity="0.9"/><circle cx="36" cy="108" r="1.2" fill="#fff" opacity="0.5"/><circle cx="534" cy="104" r="0.6" fill="#fff" opacity="0.7"/><circle cx="14" cy="52" r="0.6" fill="#fff" opacity="0.5"/><circle cx="453" cy="33" r="1.8" fill="#fff" opacity="0.7"/><circle cx="235" cy="79" r="1.0" fill="#fff" opacity="0.9"/><circle cx="533" cy="43" r="0.6" fill="#fff" opacity="0.35"/><circle cx="370" cy="57" r="1.2" fill="#fff" opacity="0.5"/><circle cx="463" cy="70" r="90" fill="url(#glow)"/><circle cx="463" cy="70" r="32" fill="#e6eaff" opacity="0.9"/><path d="M0,300 L0,190 L45,213 L110,150 L176,224 L230,200 L280,217 L330,130 L389,216 L450,190 L520,211 L600,160 L600,300 Z" fill="#ffffff" opacity="0.08"/><path d="M0,300 L0,230 L75,253 L150,200 L230,258 L300,235 L365,248 L420,205 L506,241 L600,225 L600,300 Z" fill="#050819" opacity="0.65"/><path d="M-10.0,234.4 L-3.5,245.7 L-7.3,243.4 L-1.8,257.0 L-6.5,254.7 L-0.0,268.3 L-5.8,266.0 L1.7,279.5 L-5.1,277.2 L3.5,290.8 L-8.0,290.8 L-8.0,300.0 L-12.0,300.0 L-12.0,290.8 L-23.5,290.8 L-14.9,277.2 L-21.7,279.5 L-14.2,266.0 L-20.0,268.3 L-13.5,254.7 L-18.2,257.0 L-12.7,243.4 L-16.5,245.7 Z" fill="#040714"/><path d="M12.1,194.9 L23.0,213.0 L16.7,209.3 L25.9,231.0 L17.9,227.4 L28.9,249.1 L19.2,245.4 L31.8,267.2 L20.4,263.5 L34.8,285.3 L14.1,285.3 L14.1,300.0 L10.1,300.0 L10.1,285.3 L-10.5,285.3 L3.9,263.5 L-7.5,267.2 L5.1,245.4 L-4.6,249.1 L6.4,227.4 L-1.6,231.0 L7.6,209.3 L1.3,213.0 Z" fill="#040714"/><path d="M36.0,244.2 L41.4,253.8 L38.2,251.9 L42.8,263.4 L38.8,261.5 L44.3,273.0 L39.5,271.1 L45.7,282.6 L40.1,280.7 L47.2,292.2 L38.0,292.2 L38.0,300.0 L34.0,300.0 L34.0,292.2 L24.7,292.2 L31.9,280.7 L26.2,282.6 L32.5,271.1 L27.7,273.0 L33.1,261.5 L29.1,263.4 L33.7,251.9 L30.6,253.8 Z" fill=Line truncated
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300" preserveAspectRatio="xMidYMid slice"><defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0.4" y2="1">
|
||||
<stop offset="0" stop-color="#2a1450"/><stop offset="0.7" stop-color="#7a2f86"/><stop offset="1" stop-color="#24104a"/></linearGradient>
|
||||
<radialGradient id="glow" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="0.45"/><stop offset="1" stop-color="#ffffff" stop-opacity="0"/></radialGradient>
|
||||
</defs><rect width="600" height="300" fill="url(#sky)"/><circle cx="143" cy="93" r="1.0" fill="#fff" opacity="0.9"/><circle cx="375" cy="11" r="0.6" fill="#fff" opacity="0.9"/><circle cx="156" cy="40" r="1.2" fill="#fff" opacity="0.9"/><circle cx="238" cy="146" r="0.8" fill="#fff" opacity="0.5"/><circle cx="521" cy="89" r="0.6" fill="#fff" opacity="0.35"/><circle cx="96" cy="163" r="0.6" fill="#fff" opacity="0.7"/><circle cx="468" cy="140" r="1.0" fill="#fff" opacity="0.9"/><circle cx="357" cy="156" r="1.2" fill="#fff" opacity="0.9"/><circle cx="237" cy="136" r="1.2" fill="#fff" opacity="0.5"/><circle cx="527" cy="17" r="0.8" fill="#fff" opacity="0.9"/><circle cx="130" cy="164" r="1.2" fill="#fff" opacity="0.7"/><circle cx="253" cy="142" r="1.8" fill="#fff" opacity="0.7"/><circle cx="320" cy="69" r="0.8" fill="#fff" opacity="0.7"/><circle cx="409" cy="158" r="1.0" fill="#fff" opacity="0.5"/><circle cx="419" cy="55" r="1.8" fill="#fff" opacity="0.35"/><circle cx="428" cy="36" r="1.8" fill="#fff" opacity="0.7"/><circle cx="171" cy="11" r="1.2" fill="#fff" opacity="0.35"/><circle cx="206" cy="11" r="0.8" fill="#fff" opacity="0.35"/><circle cx="176" cy="131" r="0.6" fill="#fff" opacity="0.35"/><circle cx="363" cy="129" r="1.2" fill="#fff" opacity="0.7"/><circle cx="331" cy="157" r="1.0" fill="#fff" opacity="0.5"/><circle cx="599" cy="53" r="0.6" fill="#fff" opacity="0.35"/><circle cx="360" cy="5" r="0.8" fill="#fff" opacity="0.9"/><circle cx="175" cy="45" r="0.6" fill="#fff" opacity="0.7"/><circle cx="188" cy="163" r="1.2" fill="#fff" opacity="0.9"/><circle cx="276" cy="88" r="1.8" fill="#fff" opacity="0.35"/><circle cx="372" cy="160" r="1.8" fill="#fff" opacity="0.7"/><circle cx="259" cy="122" r="0.8" fill="#fff" opacity="0.7"/><circle cx="262" cy="44" r="1.0" fill="#fff" opacity="0.7"/><circle cx="7" cy="71" r="1.8" fill="#fff" opacity="0.7"/><circle cx="12" cy="105" r="0.8" fill="#fff" opacity="0.35"/><circle cx="380" cy="57" r="1.0" fill="#fff" opacity="0.7"/><circle cx="365" cy="47" r="1.2" fill="#fff" opacity="0.35"/><circle cx="354" cy="162" r="0.6" fill="#fff" opacity="0.7"/><circle cx="151" cy="78" r="1.8" fill="#fff" opacity="0.7"/><circle cx="106" cy="31" r="1.0" fill="#fff" opacity="0.7"/><circle cx="180" cy="64" r="0.6" fill="#fff" opacity="0.5"/><circle cx="186" cy="38" r="1.0" fill="#fff" opacity="0.5"/><circle cx="197" cy="115" r="0.6" fill="#fff" opacity="0.35"/><circle cx="360" cy="161" r="0.8" fill="#fff" opacity="0.9"/><circle cx="486" cy="163" r="0.6" fill="#fff" opacity="0.7"/><circle cx="445" cy="37" r="1.8" fill="#fff" opacity="0.9"/><circle cx="162" cy="134" r="0.6" fill="#fff" opacity="0.5"/><circle cx="189" cy="142" r="1.8" fill="#fff" opacity="0.5"/><circle cx="518" cy="58" r="0.6" fill="#fff" opacity="0.7"/><circle cx="354" cy="72" r="1.8" fill="#fff" opacity="0.7"/><circle cx="279" cy="108" r="1.0" fill="#fff" opacity="0.9"/><circle cx="341" cy="6" r="1.2" fill="#fff" opacity="0.5"/><circle cx="120" cy="81" r="1.8" fill="#fff" opacity="0.9"/><circle cx="335" cy="168" r="0.8" fill="#fff" opacity="0.35"/><circle cx="447" cy="142" r="1.8" fill="#fff" opacity="0.7"/><circle cx="326" cy="151" r="0.6" fill="#fff" opacity="0.7"/><circle cx="72" cy="42" r="0.6" fill="#fff" opacity="0.5"/><circle cx="538" cy="153" r="1.8" fill="#fff" opacity="0.35"/><circle cx="8" cy="127" r="0.8" fill="#fff" opacity="0.7"/><circle cx="143" cy="3" r="1.8" fill="#fff" opacity="0.9"/><circle cx="32" cy="155" r="0.6" fill="#fff" opacity="0.7"/><circle cx="75" cy="165" r="1.8" fill="#fff" opacity="0.9"/><circle cx="487" cy="10" r="0.8" fill="#fff" opacity="0.5"/><circle cx="73" cy="151" r="0.6" fill="#fff" opacity="0.5"/><circle cx="409" cy="70" r="90" fill="url(#glow)"/><circle cx="409" cy="70" r="32" fill="#e6eaff" opacity="0.9"/><path d="M0,300 L0,190 L50,218 L110,150 L163,228 L230,200 L280,221 L330,130 L388,215 L450,190 L520,212 L600,160 L600,300 Z" fill="#ffffff" opacity="0.08"/><path d="M0,300 L0,230 L75,239 L150,200 L222,256 L300,235 L366,255 L420,205 L503,234 L600,225 L600,300 Z" fill="#050819" opacity="0.65"/><path d="M-10.0,221.0 L-3.1,234.6 L-7.1,231.8 L-1.2,248.2 L-6.3,245.4 L0.6,261.8 L-5.5,259.0 L2.5,275.4 L-4.7,272.6 L4.4,288.9 L-8.0,288.9 L-8.0,300.0 L-12.0,300.0 L-12.0,288.9 L-24.4,288.9 L-15.3,272.6 L-22.5,275.4 L-14.5,259.0 L-20.6,261.8 L-13.7,245.4 L-18.8,248.2 L-12.9,231.8 L-16.9,234.6 Z" fill="#040714"/><path d="M12.6,219.1 L20.7,233.0 L16.0,230.2 L22.9,246.9 L16.9,244.1 L25.1,260.8 L17.8,258.0 L27.3,274.8 L18.7,271.9 L29.5,288.7 L14.6,288.7 L14.6,300.0 L10.6,300.0 L10.6,288.7 L-4.4,288.7 L6.4,271.9 L-2.2,274.8 L7.3,258.0 L0.0,260.8 L8.2,244.1 L2.2,246.9 L9.1,230.2 L4.4,233.0 Z" fill="#040714"/><path d="M28.4,245.7 L33.7,255.0 L30.7,253.1 L35.2,264.4 L31.3,262.5 L36.6,273.7 L31.9,271.8 L38.0,283.1 L32.5,281.2 L39.5,292.4 L30.4,292.4 L30.4,300.0 L26.4,300.0 L26.4,292.4 L17.4,292.4 L24.4,281.2 L18.8,283.1 L25.0,271.8 L20.3,273.7 L25.6,262.5 L21.7,264.4 L26.2,253.1 L23.1,255.0 Z" fill="#0407Line truncated
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
@@ -0,0 +1,16 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 900" preserveAspectRatio="xMidYMax slice"><defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#0a1033" stop-opacity="0"/><stop offset="0.12" stop-color="#0b1440"/>
|
||||
<stop offset="0.55" stop-color="#132068"/><stop offset="1" stop-color="#070b24"/></linearGradient>
|
||||
<radialGradient id="planet" cx="0.3" cy="0.8" r="0.8">
|
||||
<stop offset="0" stop-color="#2f4fd8" stop-opacity="0.5"/><stop offset="1" stop-color="#101a5a" stop-opacity="0.1"/></radialGradient>
|
||||
<radialGradient id="spark" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#cfe0ff"/><stop offset="0.25" stop-color="#6f9bff" stop-opacity="0.6"/>
|
||||
<stop offset="1" stop-color="#6f9bff" stop-opacity="0"/></radialGradient>
|
||||
<linearGradient id="peak" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#2e4cc4"/><stop offset="1" stop-color="#0d1546"/></linearGradient>
|
||||
<linearGradient id="peak2" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#1b2a82"/><stop offset="1" stop-color="#0a1038"/></linearGradient>
|
||||
<linearGradient id="fade" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0.6" stop-color="#070b24" stop-opacity="0"/><stop offset="1" stop-color="#070b24" stop-opacity="0.95"/></linearGradient>
|
||||
</defs><rect width="480" height="900" fill="url(#sky)"/><circle cx="217" cy="291" r="1.2" fill="#fff" opacity="0.9"/><circle cx="244" cy="305" r="0.8" fill="#fff" opacity="0.9"/><circle cx="302" cy="412" r="0.6" fill="#fff" opacity="0.9"/><circle cx="146" cy="47" r="0.6" fill="#fff" opacity="0.9"/><circle cx="463" cy="340" r="1.8" fill="#fff" opacity="0.5"/><circle cx="299" cy="432" r="0.6" fill="#fff" opacity="0.35"/><circle cx="17" cy="457" r="1.8" fill="#fff" opacity="0.35"/><circle cx="373" cy="170" r="1.8" fill="#fff" opacity="0.5"/><circle cx="249" cy="333" r="1.2" fill="#fff" opacity="0.35"/><circle cx="318" cy="238" r="1.0" fill="#fff" opacity="0.9"/><circle cx="479" cy="518" r="0.6" fill="#fff" opacity="0.7"/><circle cx="151" cy="119" r="1.0" fill="#fff" opacity="0.35"/><circle cx="34" cy="398" r="1.2" fill="#fff" opacity="0.35"/><circle cx="406" cy="201" r="0.6" fill="#fff" opacity="0.35"/><circle cx="102" cy="482" r="0.6" fill="#fff" opacity="0.9"/><circle cx="180" cy="369" r="1.2" fill="#fff" opacity="0.35"/><circle cx="272" cy="103" r="1.0" fill="#fff" opacity="0.7"/><circle cx="42" cy="173" r="1.2" fill="#fff" opacity="0.35"/><circle cx="65" cy="368" r="0.6" fill="#fff" opacity="0.35"/><circle cx="223" cy="253" r="1.8" fill="#fff" opacity="0.5"/><circle cx="215" cy="99" r="0.8" fill="#fff" opacity="0.9"/><circle cx="309" cy="61" r="1.2" fill="#fff" opacity="0.5"/><circle cx="0" cy="449" r="1.8" fill="#fff" opacity="0.7"/><circle cx="479" cy="10" r="0.8" fill="#fff" opacity="0.9"/><circle cx="478" cy="313" r="1.8" fill="#fff" opacity="0.35"/><circle cx="20" cy="76" r="1.2" fill="#fff" opacity="0.7"/><circle cx="5" cy="317" r="1.0" fill="#fff" opacity="0.9"/><circle cx="35" cy="47" r="1.8" fill="#fff" opacity="0.5"/><circle cx="7" cy="192" r="1.8" fill="#fff" opacity="0.9"/><circle cx="61" cy="305" r="1.8" fill="#fff" opacity="0.5"/><circle cx="416" cy="95" r="0.8" fill="#fff" opacity="0.7"/><circle cx="436" cy="425" r="0.8" fill="#fff" opacity="0.5"/><circle cx="76" cy="327" r="1.8" fill="#fff" opacity="0.5"/><circle cx="330" cy="202" r="1.2" fill="#fff" opacity="0.35"/><circle cx="202" cy="54" r="0.6" fill="#fff" opacity="0.7"/><circle cx="114" cy="366" r="1.0" fill="#fff" opacity="0.9"/><circle cx="395" cy="310" r="1.0" fill="#fff" opacity="0.5"/><circle cx="446" cy="508" r="0.8" fill="#fff" opacity="0.5"/><circle cx="230" cy="340" r="1.8" fill="#fff" opacity="0.35"/><circle cx="135" cy="477" r="0.8" fill="#fff" opacity="0.35"/><circle cx="33" cy="214" r="0.8" fill="#fff" opacity="0.35"/><circle cx="22" cy="147" r="1.8" fill="#fff" opacity="0.5"/><circle cx="44" cy="72" r="1.2" fill="#fff" opacity="0.7"/><circle cx="315" cy="359" r="1.8" fill="#fff" opacity="0.5"/><circle cx="283" cy="480" r="1.2" fill="#fff" opacity="0.7"/><circle cx="336" cy="501" r="0.6" fill="#fff" opacity="0.35"/><circle cx="231" cy="380" r="1.0" fill="#fff" opacity="0.5"/><circle cx="480" cy="39" r="1.8" fill="#fff" opacity="0.7"/><circle cx="354" cy="468" r="0.8" fill="#fff" opacity="0.7"/><circle cx="169" cy="356" r="0.6" fill="#fff" opacity="0.9"/><circle cx="453" cy="16" r="1.2" fill="#fff" opacity="0.35"/><circle cx="300" cy="199" r="1.8" fill="#fff" opacity="0.35"/><circle cx="292" cy="42" r="0.6" fill="#fff" opacity="0.7"/><circle cx="422" cy="379" r="1.2" fill="#fff" opacity="0.9"/><circle cx="211" cy="436" r="0.6" fill="#fff" opacity="0.35"/><circle cx="149" cy="46" r="0.6" fill="#fff" opacity="0.5"/><circle cx="460" cy="59" r="1.8" fill="#fff" opacity="0.9"/><circle cx="123" cy="6" r="1.0" fill="#fff" opacity="0.5"/><circle cx="326" cy="105" r="0.8" fill="#fff" opacity="0.7"/><circle cx="317" cy="230" r="0.8" fill="#fff" opacity="0.7"/><circle cx="194" cy="130" r="1.2" fill="#fff" opacity="0.5"/><circle cx="423" cy="200" r="1.8" fill="#fff" opacity="0.7"/><circle cx="101" cy="70" r="1.0" fill="#fff" opacity="0.35"/><circle cx="341" cy="494" r="1.0" fill="#fff" opacity="0.5"/><circle cx="54" cy="245" r="0.8" fill="#fff" opacity="0.9"/><circle cx="184" cy="270" r="1.0" fill="#fff" opacity="0.9"/><circle cx="154" cy="431" r="1.0" fill="#fff" opacity="0.35"/><circle cx="326" cy="146" r="1.0" fill="#fff" opacity="0.7"/><circle cx="312" cy="293" r="0.8" fill="#fff" opacity="0.9"/><circle cx="218" cy="13" r="1.0" fill="#fff" opacity="0.5"/><circle cx="374" cy="414" r="0.6" fill="#fff" opacity="0.9"/><circle cx="52" cy="278" r="1.0" fill="#fff" opacity="0.35"/><circle cx="329" cy="104" r="1.2" fill="#fff" opacity="0.7"/><circle cx="86" cy="6" r="1.2" fill="#fff" opacity="0.35"/><circle cx="86" cy="142" r="1.0" fill="#fff" opacity="0.5"/><circle cx="189" cy="412" r="0.8" fill="#fff" opacity="0.35"/><circle cx="197" cy="464" r="1.2" fill="#fff" opacity="0.5"/><circle cx="216" cy="102" r="0.6" fill="#fff" opacity="0.9"/><circle cx="264" cy="339" r="1.8" fill="#fff" opacity="0.7"/><circle cx="223" cy="339" r="0.8" fill="#fff" opacity="0.35"/><circle cx="347" cy="426" r="0.6" fill="#fff" opacity="0.5"/><circle cx="116" cyLine truncated
|
||||
|
After Width: | Height: | Size: 16 KiB |
@@ -152,4 +152,13 @@ export global Icons {
|
||||
out property <image> zap: @image-url("assets/icons/zap.svg");
|
||||
// The app mark (full colour, not for colorize).
|
||||
out property <image> 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 <image> art-banner: @image-url("assets/art/banner.svg");
|
||||
out property <image> 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"),
|
||||
];
|
||||
}
|
||||
@@ -76,6 +76,8 @@ component RsvpButton inherits Rectangle {
|
||||
// One event as a card.
|
||||
component EventCard inherits Rectangle {
|
||||
in property <EventItem> event;
|
||||
// The phone: a smaller date, the lines wrap.
|
||||
in property <bool> 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 <bool> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 <length> 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 <length> cover-width;
|
||||
in property <length> cover-height;
|
||||
// 0: keep the left (top) edge, 1: the right (bottom) one.
|
||||
in property <float> align-x: 0.5;
|
||||
in property <float> align-y: 0.5;
|
||||
property <float> 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 <ConversationItem> 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 <bool> 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;
|
||||
|
||||
@@ -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 <bool> 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 { }
|
||||
|
||||
Reference in new issue
Block a user