Apply custom theme settings on designer screen

main
Bob Mottram 2021-12-05 12:55:12 +00:00
parent 74d87fe54c
commit 3e74267fd3
1 changed files with 8 additions and 0 deletions

View File

@ -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'):