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>
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 {
|
||||
|
||||
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |