Background and foreground

merge-requests/30/head
Bob Mottram 2021-12-05 16:19:53 +00:00
parent 43987de00e
commit 39fc2edba9
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
variableNameStr = variableName.replace('-', ' ')
if variableNameStr.endswith(' color'):
variableNameStr = variableNameStr.replace(' color', '')
if variableNameStr.endswith(' bg'):
variableNameStr = variableNameStr.replace(' bg', ' background')
elif variableNameStr.endswith(' fg'):
variableNameStr = variableNameStr.replace(' fg', ' foreground')
variableNameStr = variableNameStr.title()
themeForm += \
' <tr><td><label class="labels">' + \