mirror of https://gitlab.com/bashrc2/epicyon
Check for booleans within dimension
parent
6d8a80a0c6
commit
11fbcec55f
|
@ -271,8 +271,9 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
|
||||||
'<td><input type="color" name="themeSetting_' + \
|
'<td><input type="color" name="themeSetting_' + \
|
||||||
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):
|
'-height' in variableName) and
|
||||||
|
(value.lower() != 'true' and value.lower() != 'false')):
|
||||||
variableNameStr = variableName.replace('-', ' ')
|
variableNameStr = variableName.replace('-', ' ')
|
||||||
variableNameStr = variableNameStr.title()
|
variableNameStr = variableNameStr.title()
|
||||||
dimensionStr += \
|
dimensionStr += \
|
||||||
|
@ -282,14 +283,14 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
|
||||||
'<td><input type="text" name="themeSetting_' + \
|
'<td><input type="text" name="themeSetting_' + \
|
||||||
variableName + '" value="' + str(value) + \
|
variableName + '" value="' + str(value) + \
|
||||||
'" title="' + variableNameStr + '"></td></tr>\n'
|
'" title="' + variableNameStr + '"></td></tr>\n'
|
||||||
elif value == 'True' or value == 'False':
|
elif value.title() == 'True' or value.title() == 'False':
|
||||||
variableNameStr = variableName.replace('-', ' ')
|
variableNameStr = variableName.replace('-', ' ')
|
||||||
variableNameStr = variableNameStr.title()
|
variableNameStr = variableNameStr.title()
|
||||||
switchStr += \
|
switchStr += \
|
||||||
' <tr><td><label class="labels">' + \
|
' <tr><td><label class="labels">' + \
|
||||||
variableNameStr + '</label></td>'
|
variableNameStr + '</label></td>'
|
||||||
checkedStr = ''
|
checkedStr = ''
|
||||||
if value == 'True':
|
if value.title() == 'True':
|
||||||
checkedStr = ' checked'
|
checkedStr = ' checked'
|
||||||
switchStr += \
|
switchStr += \
|
||||||
'<td><input type="checkbox" class="profilecheckbox" ' + \
|
'<td><input type="checkbox" class="profilecheckbox" ' + \
|
||||||
|
|
Loading…
Reference in New Issue