Only use colors defined as hex values

main
Bob Mottram 2021-12-05 12:28:08 +00:00
parent a2d537dc1d
commit 8728de34b1
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
themeForm += ' <tbody>\n'
for variableName, value in themeJson.items():
# only use colors defined as hex
if not value.startswith('#'):
continue
if variableName.endswith('-color') or \
variableName.endswith('-text'):
variableNameStr = variableName.replace('-', ' ')