From 151ea12251ed876aa87bb486da1bc337e25369e9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 1 Aug 2026 16:18:19 -0300 Subject: --- vrsite/main.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'vrsite/main.go') diff --git a/vrsite/main.go b/vrsite/main.go index 5f9b1ef..69c90a8 100644 --- a/vrsite/main.go +++ b/vrsite/main.go @@ -11,7 +11,9 @@ // repository is only ever read, never modified. // // Theme comes from a Zed theme JSON; per-agent colors come from the theme's -// player (collaborator) palette. +// player (collaborator) palette. Every other theme this machine has — Zed's +// and Helix's both — is offered in the picker, previewed as you move through +// it, and remembered in the browser. package main import ( @@ -69,6 +71,11 @@ and the app keeps no state of its own. Session transcripts (the conversation behind a note) are looked up by session id under -transcripts; Claude Code and Codex are found automatically. +The site is built with the two themes -theme and -light-theme name. Every +other theme installed on this machine — Zed families and Helix themes both — +is offered in the picker at the bottom of the tree: it previews as you move +through it, and the browser remembers what you settled on. + flags: ` @@ -112,15 +119,16 @@ func main() { } theme := loadTheme(*themePath, *themeName, "dark") light := loadTheme(*lightPath, *lightName, "light") + themes := newThemeSet(theme, light) if *out == "" { if *watch { fatal("-watch is for -out builds; the served app already follows the log") } - serve(*addr, *logPath, repoAbs, *title, username(*who), strings.Split(*roots, ","), theme, light) + serve(*addr, *logPath, repoAbs, *title, username(*who), strings.Split(*roots, ","), theme, light, themes) return } - build := func() { buildSite(*logPath, repoAbs, *out, *title, theme, light) } + build := func() { buildSite(*logPath, repoAbs, *out, *title, theme, light, themes) } build() if !*watch { return -- cgit v1.3