voelin-ui: new screenshots of the server screens
The pictures in docs/screenshots/ showed the server page before the design's layout. They are taken again with scripts/shots.sh, and the new screens get their own: the voice channel, the pins, the topics, an open topic, the member card and the stream popped out. `VOELIN_OPEN=topic:<id>` now fills the sample topic as the gateway would when it is opened (it was answered once at start and then cleared), and the top bar's members button also closes an open drawer, like the chat header's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e88498d587
commit
1041ffaf5c
24 files changed
+17
-5
No files matched your search
@@ -153,7 +153,13 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running {
|
||||
"pins" => nav.invoke_show_pins(true),
|
||||
"topics" => nav.invoke_show_topics(true),
|
||||
"topic" => {
|
||||
with_app(|app| app.open_topic(arg.parse().unwrap_or(1)));
|
||||
with_app(|app| {
|
||||
app.open_topic(arg.parse().unwrap_or(1));
|
||||
// No gateway answers in demo mode.
|
||||
if switches.demo_ui {
|
||||
demo_topic(app);
|
||||
}
|
||||
});
|
||||
}
|
||||
"member" => {
|
||||
with_app(|app| app.open_first_member());
|
||||
@@ -640,8 +646,14 @@ fn demo_chat(app: &mut App, session: u64) {
|
||||
],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/// The messages of the sample topic, as the gateway answers when it is
|
||||
/// opened.
|
||||
fn demo_topic(app: &mut App) {
|
||||
let now = chrono::Utc::now().timestamp_millis();
|
||||
app.handle_event(Event::Gateway {
|
||||
session,
|
||||
session: DEMO as u64,
|
||||
update: GatewayUpdate::TopicHistory {
|
||||
target: ChatTarget::Channel(2),
|
||||
topic: 1,
|
||||
|
||||
@@ -220,12 +220,12 @@ export component TopBar inherits Rectangle {
|
||||
}
|
||||
IconButton {
|
||||
icon: Icons.users;
|
||||
label: @tr("Members and streams");
|
||||
checked: Nav.right-panel-open && Nav.page == Page.server;
|
||||
label: @tr("Members");
|
||||
checked: Nav.right-panel-open && !Nav.pins-open && !Nav.topics-open && Nav.page == Page.server;
|
||||
y: (parent.height - self.height) / 2;
|
||||
clicked => {
|
||||
Nav.show(Page.server);
|
||||
Nav.right-panel-open = !Nav.right-panel-open;
|
||||
Nav.toggle-members();
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
|
||||
Reference in new issue
Block a user