aboutsummaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go2
-rw-r--r--internal/config/config.toml1
-rw-r--r--internal/config/config_test.go3
3 files changed, 6 insertions, 0 deletions
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")
}