From 3e74267fd318700dddda4eb82fb3093240d05507 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 5 Dec 2021 12:55:12 +0000 Subject: [PATCH] Apply custom theme settings on designer screen --- webapp_themeDesigner.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp_themeDesigner.py b/webapp_themeDesigner.py index 12cde75d0..6cb12d901 100644 --- a/webapp_themeDesigner.py +++ b/webapp_themeDesigner.py @@ -177,6 +177,14 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str, if os.path.isfile(themeFilename): themeJson = loadJson(themeFilename) + # set custom theme parameters + customVariablesFile = baseDir + '/accounts/theme.json' + if os.path.isfile(customVariablesFile): + customThemeParams = loadJson(customVariablesFile, 0) + if customThemeParams: + for variableName, value in customThemeParams.items(): + themeJson[variableName] = value + themeForm = '' cssFilename = baseDir + '/epicyon-profile.css' if os.path.isfile(baseDir + '/epicyon.css'):