From 36d87e27019fce743e63be87222e987510863e6f Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 23 Jul 2026 16:13:56 +0200 Subject: web: remove deus_vult theme; add global monospace toggle (web_mono config + top-bar 'mono') --- internal/config/config.go | 2 ++ internal/config/config.toml | 1 + internal/config/config_test.go | 3 +++ 3 files changed, 6 insertions(+) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index c15b5a0..ebe687f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -64,6 +64,7 @@ type Config struct { WebTheme string `toml:"web_theme"` WebPort int `toml:"web_port"` WebDisplay string `toml:"web_display"` + WebMono bool `toml:"web_mono"` Parts map[string]map[string]bool `toml:"parts"` } @@ -92,6 +93,7 @@ func Default() Config { WebTheme: "transfiguration", WebPort: 0, WebDisplay: "horizontal", + WebMono: false, Parts: nil, } } diff --git a/internal/config/config.toml b/internal/config/config.toml index cfcb85b..3a15de2 100644 --- a/internal/config/config.toml +++ b/internal/config/config.toml @@ -9,6 +9,7 @@ offline = false # true = never fetch; read only harvested sigla + ca web_theme = "transfiguration" # built-in order/season theme or a user theme in ~/.config/lectio/themes/ web_port = 0 # lectio-web port; 0 = try 1099, then any free port web_display = "horizontal" # lectio-web layout: "horizontal" (stacked), "vertical" (columns), "interlinear" (verse-by-verse) +web_mono = false # lectio-web: monospace reading face for any theme (also a top-bar "mono" toggle) # Which parts to show. Both tables are commented out -> every part is shown. # Uncomment a table and set a part to false to hide it; parts you don't list diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 9ca311b..d2f3203 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -38,6 +38,9 @@ func TestLoadOverride(t *testing.T) { func TestWebDefaults(t *testing.T) { def := Default() + if def.WebMono { + t.Errorf("WebMono default should be false") + } if def.WebTheme != "transfiguration" { t.Errorf("WebTheme default wrong: got %q, want %q", def.WebTheme, "transfiguration") } -- cgit v1.3