mirror of https://gitlab.com/bashrc2/epicyon
Value changes specific to color
parent
3ed5e4ceee
commit
1bec325f3f
|
@ -231,14 +231,14 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str,
|
||||||
themeForm += ' <tbody>\n'
|
themeForm += ' <tbody>\n'
|
||||||
|
|
||||||
for variableName, value in themeJson.items():
|
for variableName, value in themeJson.items():
|
||||||
# only use colors defined as hex
|
|
||||||
if not value.startswith('#'):
|
|
||||||
if color_to_hex.get(value):
|
|
||||||
value = color_to_hex[value]
|
|
||||||
else:
|
|
||||||
continue
|
|
||||||
if variableName.endswith('-color') or \
|
if variableName.endswith('-color') or \
|
||||||
variableName.endswith('-text'):
|
variableName.endswith('-text'):
|
||||||
|
# only use colors defined as hex
|
||||||
|
if not value.startswith('#'):
|
||||||
|
if color_to_hex.get(value):
|
||||||
|
value = color_to_hex[value]
|
||||||
|
else:
|
||||||
|
continue
|
||||||
variableNameStr = variableName.replace('-', ' ')
|
variableNameStr = variableName.replace('-', ' ')
|
||||||
if variableNameStr.endswith(' color'):
|
if variableNameStr.endswith(' color'):
|
||||||
variableNameStr = variableNameStr.replace(' color', '')
|
variableNameStr = variableNameStr.replace(' color', '')
|
||||||
|
|
Loading…
Reference in New Issue