Content warning

merge-requests/30/head
Bob Mottram 2021-12-05 19:44:55 +00:00
parent 54694edd4e
commit 3ed5e4ceee
1 changed files with 2 additions and 0 deletions

View File

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