diff --git a/webapp_themeDesigner.py b/webapp_themeDesigner.py index 5c3ac3797..d2b7b5177 100644 --- a/webapp_themeDesigner.py +++ b/webapp_themeDesigner.py @@ -271,8 +271,9 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str, '\n' - elif ('-width' in variableName or - '-height' in variableName): + elif (('-width' in variableName or + '-height' in variableName) and + (value.lower() != 'true' and value.lower() != 'false')): variableNameStr = variableName.replace('-', ' ') variableNameStr = variableNameStr.title() dimensionStr += \ @@ -282,14 +283,14 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str, '\n' - elif value == 'True' or value == 'False': + elif value.title() == 'True' or value.title() == 'False': variableNameStr = variableName.replace('-', ' ') variableNameStr = variableNameStr.title() switchStr += \ ' ' checkedStr = '' - if value == 'True': + if value.title() == 'True': checkedStr = ' checked' switchStr += \ '