Make dark theme even darker, add fallback for legacy themes

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2020-12-22 11:07:28 +04:00
parent bcaddd4354
commit 1e88cca59a
2 changed files with 20 additions and 15 deletions

View File

@@ -79,6 +79,10 @@ func dirExists(dir string) error {
// |- templates
//
func loadWebConfig(c webConfig) (http.Handler, http.Handler, *templates, error) {
// fallback to the default theme if the legacy theme name is provided
if c.theme == "coreos" || c.theme == "tectonic" {
c.theme = ""
}
if c.theme == "" {
c.theme = "light"
}