Make it possible to change the font size for regular text
All checks were successful
CI / test (push) Successful in 4m14s
Lint / test (push) Successful in 30s
Trivy / test (push) Successful in 20s

This commit is contained in:
Miguel Jacq 2025-11-21 10:30:40 +11:00
parent 0923fb4395
commit 0e5d622a4e
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
7 changed files with 64 additions and 4 deletions

View file

@ -44,6 +44,7 @@ def load_db_config() -> DBConfig:
tags = s.value("ui/tags", True, type=bool)
time_log = s.value("ui/time_log", True, type=bool)
locale = s.value("ui/locale", "en", type=str)
font_size = s.value("ui/font_size", 11, type=int)
return DBConfig(
path=path,
key=key,
@ -53,6 +54,7 @@ def load_db_config() -> DBConfig:
tags=tags,
time_log=time_log,
locale=locale,
font_size=font_size,
)
@ -66,3 +68,4 @@ def save_db_config(cfg: DBConfig) -> None:
s.setValue("ui/tags", str(cfg.tags))
s.setValue("ui/time_log", str(cfg.time_log))
s.setValue("ui/locale", str(cfg.locale))
s.setValue("ui/font_size", str(cfg.font_size))