Home fits the window as in the design; live cards over their picture
At the design's size the home column ended below the window: its section titles were taller than their text, the banner had more padding and the recent chats did not show. The titles now hug their text, the banner is a little lower, so banner, friends, live rooms, servers and recent chats fit as in mockup 01; the four recent chats share their row evenly instead of the last being cut. The friends row showed a cut bubble at its edge and pushed Find Friends out of sight; it now shows as many whole bubbles as fit with Find Friends right after the last one (the rest scroll in). A live room's picture fills the card with the title, streamer and tags over its darker lower part, and a round arrow at the row's edge brings the next one in, as in the design. Friend activity rows sit close together so the right column shows what is happening below them. On a server, the Members entry above the channel tree is no longer marked while the members panel is open: the design shows it unmarked, and the header's button already shows the panel. Offline messages in the inbox show a mail sign without the sender's initials under it, and the sample data has some, so the Inbox tab renders headless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56c7bd98fb
commit
5ed26b23df
4 files changed
+198
-135
No files matched your search
@@ -44,8 +44,8 @@ use slint::{ComponentHandle, Rgba8Pixel, SharedPixelBuffer};
|
||||
use voelin_core::gateway::Pin;
|
||||
use voelin_core::stream::{StreamInfo, StreamKind};
|
||||
use voelin_core::{
|
||||
Contact, Event, GatewayUpdate, HistoryMessage, HistorySource, ObserveState, Relation,
|
||||
SessionState, Source, VoiceState,
|
||||
Contact, Event, GatewayUpdate, HistoryMessage, HistorySource, ObserveState, OfflineMessageInfo,
|
||||
Relation, SessionState, Source, VoiceState,
|
||||
};
|
||||
use voelin_gateway_proto::{
|
||||
Action, Attendee, ConfigEntry, ConfigSource, EventInfo, EventKind, EventSpec, PermRule,
|
||||
@@ -718,6 +718,23 @@ fn demo_social(app: &mut App) {
|
||||
if let Some(p) = app.social.pokes.last_mut() {
|
||||
p.ts_ms = now - 7 * min;
|
||||
}
|
||||
// Offline messages the server keeps (the Inbox tab).
|
||||
let mail = |id: u32, from: &str, subject: &str, ago_min: i64, read: bool| OfflineMessageInfo {
|
||||
id,
|
||||
from_uid: from.into(),
|
||||
subject: subject.into(),
|
||||
ts_s: (now - ago_min * min) / 1000,
|
||||
read,
|
||||
};
|
||||
app.handle_event(Event::OfflineMessages {
|
||||
session,
|
||||
request: 0,
|
||||
result: Ok(vec![
|
||||
mail(1, "demo-ari", "Raid roster for Friday", 3 * 60, false),
|
||||
mail(2, "demo-neon", "The config for the dev server", 26 * 60, true),
|
||||
mail(3, "demo-4", "Thumbnails for the stream", 3 * 24 * 60, true),
|
||||
]),
|
||||
});
|
||||
|
||||
// The pictures of the links, as if downloaded.
|
||||
if let Some(view) = app.sessions.get_mut(&DEMO) {
|
||||
|
||||
Reference in new issue
Block a user