Add defaultTheme config option

This commit is contained in:
Zed
2019-10-23 14:06:47 +02:00
parent b018dbdf27
commit 3e661bab8a
7 changed files with 18 additions and 11 deletions

View File

@@ -21,5 +21,7 @@ proc getConfig*(path: string): Config =
hostname: cfg.get("Server", "hostname", "nitter.net"),
cacheDir: cfg.get("Cache", "directory", "/tmp/nitter"),
profileCacheTime: cfg.get("Cache", "profileMinutes", 10)
profileCacheTime: cfg.get("Cache", "profileMinutes", 10),
defaultTheme: cfg.get("Config", "defaultTheme", "Dark")
)