diff --git a/README.md b/README.md index c87c67a..3aba95d 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,16 @@ interzone servers over IPFS. + - +Components: 63 bridges, bots, clients and services. + + + +

The Server step

+Server: where it runs, where downloads come from, HTTPS and networking, in one form.

Picking bridges, clients and services

-Set up: pick a homeserver and any of 63 bridges, bots, clients and services.

The welcome screen in six of interzone's themes

-Themes: 13 of them, light and dark, switched with ctrl+y.

The Manage menu

+Manage the server: updates, users, backups, rollback, logs and more.

Managing the server's users

+Users: totals, a card per person, search, filter and sort.
diff --git a/docs/screenshots/components.png b/docs/screenshots/components.png index e9fca11..2b3f54a 100644 Binary files a/docs/screenshots/components.png and b/docs/screenshots/components.png differ diff --git a/docs/screenshots/homeserver.png b/docs/screenshots/homeserver.png index 138a790..be8326b 100644 Binary files a/docs/screenshots/homeserver.png and b/docs/screenshots/homeserver.png differ diff --git a/docs/screenshots/manage.png b/docs/screenshots/manage.png index 31d4542..fa4dc8d 100644 Binary files a/docs/screenshots/manage.png and b/docs/screenshots/manage.png differ diff --git a/docs/screenshots/phone.png b/docs/screenshots/phone.png index a5d101a..c81a210 100644 Binary files a/docs/screenshots/phone.png and b/docs/screenshots/phone.png differ diff --git a/docs/screenshots/server.png b/docs/screenshots/server.png index af891ee..b47fb6c 100644 Binary files a/docs/screenshots/server.png and b/docs/screenshots/server.png differ diff --git a/docs/screenshots/settings.png b/docs/screenshots/settings.png index 5c4772b..4086992 100644 Binary files a/docs/screenshots/settings.png and b/docs/screenshots/settings.png differ diff --git a/docs/screenshots/themes.png b/docs/screenshots/themes.png deleted file mode 100644 index 1ce2666..0000000 Binary files a/docs/screenshots/themes.png and /dev/null differ diff --git a/docs/screenshots/tuning.png b/docs/screenshots/tuning.png index 18bffff..887da14 100644 Binary files a/docs/screenshots/tuning.png and b/docs/screenshots/tuning.png differ diff --git a/docs/screenshots/users.png b/docs/screenshots/users.png index 3b72806..9fd2234 100644 Binary files a/docs/screenshots/users.png and b/docs/screenshots/users.png differ diff --git a/docs/screenshots/welcome.png b/docs/screenshots/welcome.png index 31636bd..4310a42 100644 Binary files a/docs/screenshots/welcome.png and b/docs/screenshots/welcome.png differ diff --git a/docs/social-preview.png b/docs/social-preview.png index 9e22021..4c494da 100644 Binary files a/docs/social-preview.png and b/docs/social-preview.png differ diff --git a/docs/usage.md b/docs/usage.md index c4e4c68..528a4c8 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -50,8 +50,7 @@ at the bottom of the menu, cycles auto, compact and wide and remembers the choice; `-layout` picks one for a single run. `ctrl+y`, or `◐` under it, switches the colours between interzone, -Catppuccin, Nord, Gruvbox, Dracula, Solarized, Tokyo Night, Rosé Pine, -Everforest, Kanagawa, One Dark, Synthwave and mono; each has a light +Catppuccin, Nord, Gruvbox, Dracula, Solarized and mono; each has a light and a dark variant that follows the terminal's background. | Key | Action | diff --git a/scripts/screenshots/render.py b/scripts/screenshots/render.py index affc1e8..8c6c022 100644 --- a/scripts/screenshots/render.py +++ b/scripts/screenshots/render.py @@ -4,9 +4,6 @@ # README's screenshots are. # render.py --join OUT.png A.png B.png … # Puts already rendered windows side by side (docs/screenshots/phone.png). -# render.py --slices OUT.png theme-A.png theme-B.png … -# One window cut into vertical slices, each from the next picture of the -# same screen, named after the file in the title bar (themes.png). # # Needs Pillow, fontTools and the DejaVu and Noto symbol fonts. import glob, os, re, sys, unicodedata @@ -29,8 +26,6 @@ FONTS = [font("DejaVuSansMono.ttf"), font("DejaVuSansMono-Bold.ttf")] FALLBACK = [font("DejaVuSans.ttf"), font("NotoSansSymbols2-Regular.ttf"), font("NotoSansMath-Regular.ttf")] EMOJI = font("NotoColorEmoji.ttf") # a bitmap font: drawn at 109 px, then scaled BG, FG = (21, 19, 30), (220, 216, 235) -if os.environ.get("BG"): # a theme's own background, for themes.png - BG = tuple(bytes.fromhex(os.environ["BG"].lstrip("#"))) reg = ImageFont.truetype(FONTS[0], SIZE) bold = ImageFont.truetype(FONTS[1], SIZE) @@ -90,26 +85,6 @@ if sys.argv[1] == "--join": finish(out, sys.argv[2], 1400) # as wide as the other shots sys.exit() -if sys.argv[1] == "--slices": - paths = sys.argv[3:] - parts = [Image.open(p).convert("RGB") for p in paths] - out = parts[0].copy() - d = ImageDraw.Draw(out) - x0, x1 = 40, out.width - 40 # the window, inside the margin render draws - step = (x1 - x0) / len(parts) - for i, (p, part) in enumerate(zip(paths, parts)): - a, b = round(x0 + i * step), round(x0 + (i + 1) * step) - out.paste(part.crop((a, 0, b, out.height)), (a, 0)) - if i: - d.line([(a, 40 + 54), (a, out.height - 41)], fill=(13, 12, 19), width=3) - name = os.path.basename(p)[:-4].removeprefix("theme-") - w = bold.getlength(name) - cx = (a + b) / 2 if i else max((a + b) / 2, 150 + w / 2) # clear of the window's dots - d.rounded_rectangle([cx - w / 2 - 14, 52, cx + w / 2 + 14, 52 + CH + 4], 12, fill=(58, 54, 80)) - d.text((cx - w / 2, 54), name, font=bold, fill=FG) - finish(out, sys.argv[2], 1400) - sys.exit() - lines = open(sys.argv[1], encoding="utf-8").read().rstrip("\n").split("\n") cells = [] # rows of (ch, fg, bg, bold) sgr = re.compile(r"\x1b\[([0-9;]*)m") diff --git a/scripts/screenshots/shots.sh b/scripts/screenshots/shots.sh index ace95ce..7da7dbd 100755 --- a/scripts/screenshots/shots.sh +++ b/scripts/screenshots/shots.sh @@ -12,8 +12,6 @@ # scripts/screenshots/shots.sh phone A B C join three phone shots into phone.png # scripts/screenshots/shots.sh users draw users.png from the layout tests' # sample people (no server needed) -# scripts/screenshots/shots.sh themes from the running session, on Welcome: the -# screen in a slice of each of THEMES (themes.png) # scripts/screenshots/shots.sh stop # # Drive the session between grabs with tmux send-keys or tmux attach -t shot. @@ -82,28 +80,6 @@ users() { python3 "$repo/scripts/screenshots/render.py" "$work/raw/users.ans" "$out/users.png" 1400 } -# themes cycles every theme with ctrl+y on Welcome, grabbing the screen in -# the ones named here, and ends on the first theme again. Up and down -# clear the "theme: …" note that takes the place of the key hints. -THEMES="interzone catppuccin nord gruvbox everforest synthwave" -themes() { - pngs=() - for t in $("$work/iz" -help 2>&1 | sed -n 's/.*the colours for this run: \(.*\); ctrl+y.*/\1/p' | tr -d ,); do - waitfor "◐ $t " - waitfor "◉ Manage the server" - waitfor "enter continue" - if [[ " $THEMES " == *" $t "* ]]; then - # the window in the theme's own background, its dark panel colour - BG=$(sed -n "/{\"$t\",/,/}},/p" "$repo/internal/ui/theme.go" | grep -o 'Dark: "#[0-9A-Fa-f]*"' | sed -n '9s/.*"\(#.*\)"/\1/p') \ - grab "theme-$t" 0 - pngs+=("$work/raw/theme-$t.png") - fi - press C-y - press Up && press Down - done - python3 "$repo/scripts/screenshots/render.py" --slices "$out/themes.png" "${pngs[@]}" -} - stop() { tmux kill-session -t shot 2>/dev/null || true } @@ -140,9 +116,7 @@ press() { before=$(screen) tmux send-keys -t shot "$1" for _ in $(seq 20); do - now=$(screen) - # a step change blanks the screen for a moment: that isn't the new one yet - [ "$now" != "$before" ] && [ -n "${now//[[:space:]]/}" ] && return + [ "$(screen)" != "$before" ] && return sleep 0.1 done } @@ -173,7 +147,6 @@ all() { press Escape waitfor "Manage the server" grab welcome - themes toHomeserver server grab homeserver press Down && press Down && press Down @@ -218,12 +191,12 @@ all() { cmd=${1:-} case $cmd in -start | grab | phone | users | themes | stop | all) +start | grab | phone | users | stop | all) shift "$cmd" "$@" ;; *) - sed -n '2,24p' "$0" | sed 's/^# \{0,1\}//' + sed -n '2,22p' "$0" | sed 's/^# \{0,1\}//' exit 1 ;; esac