mirror of https://gitlab.com/bashrc2/epicyon
Include more colors in theme designer
parent
109f8495f6
commit
bc1d396484
|
@ -243,7 +243,7 @@ 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 + '"></p></td></tr>\n'
|
'" title="' + variableNameStr + '"></p></td></tr>\n'
|
||||||
elif (variableName.endswith('-color') or
|
elif ('-color' in variableName or
|
||||||
variableName.endswith('-text')):
|
variableName.endswith('-text')):
|
||||||
# only use colors defined as hex
|
# only use colors defined as hex
|
||||||
if not value.startswith('#'):
|
if not value.startswith('#'):
|
||||||
|
@ -252,11 +252,11 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
variableNameStr = variableName.replace('-', ' ')
|
variableNameStr = variableName.replace('-', ' ')
|
||||||
if variableNameStr.endswith(' color'):
|
if ' color' in variableNameStr:
|
||||||
variableNameStr = variableNameStr.replace(' color', '')
|
variableNameStr = variableNameStr.replace(' color', '')
|
||||||
if variableNameStr.endswith(' bg'):
|
if ' bg' in variableNameStr:
|
||||||
variableNameStr = variableNameStr.replace(' bg', ' background')
|
variableNameStr = variableNameStr.replace(' bg', ' background')
|
||||||
elif variableNameStr.endswith(' fg'):
|
elif ' fg' in variableNameStr:
|
||||||
variableNameStr = variableNameStr.replace(' fg', ' foreground')
|
variableNameStr = variableNameStr.replace(' fg', ' foreground')
|
||||||
if variableNameStr == 'cw':
|
if variableNameStr == 'cw':
|
||||||
variableNameStr = 'content warning'
|
variableNameStr = 'content warning'
|
||||||
|
|
Loading…
Reference in New Issue