The sample server had no groups, no stored messages and no gateway, so none of the new screens could be seen without a real server. It now comes with server groups and badges, a chat driven by the same `Event::ChatHistory` a real session uses (reactions, pins, a file card, a message in a topic), and a gateway that answers with pins and topics. `VOELIN_OPEN` gained `voice`, `pins`, `topics`, `topic:<id>`, `member`, `watch` and `popout`, and `scripts/shots.sh` takes a screenshot of one of them headless, so the pictures in docs/screenshots/ are one command each. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
21 lines
612 B
Bash
Executable File
21 lines
612 B
Bash
Executable File
#!/bin/sh
|
|
# Take a screenshot of the app with sample data, headless.
|
|
#
|
|
# scripts/shots.sh <out.png> <VOELIN_OPEN> [<width>x<height>]
|
|
#
|
|
# The pictures in docs/screenshots/ are made this way (and reduced to 256
|
|
# colours with `convert -colors 256 PNG8:`).
|
|
set -eu
|
|
out=$1
|
|
open=$2
|
|
size=${3:-1440x960}
|
|
bin=${VOELIN_BIN:-$CARGO_TARGET_DIR/debug/voelin}
|
|
SLINT_BACKEND=winit-software \
|
|
VOELIN_DATA_DIR=$(mktemp -d) \
|
|
VOELIN_DEMO_UI=1 \
|
|
VOELIN_OPEN="$open" \
|
|
VOELIN_WINDOW_SIZE="$size" \
|
|
VOELIN_SCREENSHOT="$out" \
|
|
VOELIN_SCREENSHOT_DELAY="${DELAY:-4}" \
|
|
xvfb-run -a -s "-screen 0 1920x1200x24" "$bin" >/dev/null 2>&1
|