More theme parameters on designer screen

merge-requests/30/head
Bob Mottram 2021-12-07 12:48:59 +00:00
parent 590acb6cc5
commit e2cc26b416
1 changed files with 7 additions and 2 deletions

View File

@ -247,7 +247,9 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
'" title="' + variableNameStr + '"></td></tr>\n' '" title="' + variableNameStr + '"></td></tr>\n'
elif ('-color' in variableName or elif ('-color' in variableName or
'-background' in variableName or '-background' in variableName or
variableName.endswith('-text')): variableName.endswith('-text') or
value.startswith('#') or
color_to_hex.get(value)):
# only use colors defined as hex # only use colors defined as hex
if not value.startswith('#'): if not value.startswith('#'):
if color_to_hex.get(value): if color_to_hex.get(value):
@ -272,7 +274,10 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
variableName + '" value="' + str(value) + \ variableName + '" value="' + str(value) + \
'" title="' + variableNameStr + '"></td></tr>\n' '" title="' + variableNameStr + '"></td></tr>\n'
elif (('-width' in variableName or elif (('-width' in variableName or
'-height' in variableName) and '-height' in variableName or
'-spacing' in variableName or
'-margin' in variableName or
'-vertical' in variableName) and
(value.lower() != 'true' and value.lower() != 'false')): (value.lower() != 'true' and value.lower() != 'false')):
variableNameStr = variableName.replace('-', ' ') variableNameStr = variableName.replace('-', ' ')
variableNameStr = variableNameStr.title() variableNameStr = variableNameStr.title()