Make it possible to change the font size for regular text
This commit is contained in:
parent
0923fb4395
commit
0e5d622a4e
7 changed files with 64 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue