From 1bec325f3f1a3d9c7a0949687b8ae3e277c392b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 5 Dec 2021 19:56:14 +0000 Subject: [PATCH] Value changes specific to color --- webapp_themeDesigner.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp_themeDesigner.py b/webapp_themeDesigner.py index a17db7edb..14b0a1f2d 100644 --- a/webapp_themeDesigner.py +++ b/webapp_themeDesigner.py @@ -231,14 +231,14 @@ def htmlThemeDesigner(cssCache: {}, baseDir: str, themeForm += ' \n' 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 \ 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('-', ' ') if variableNameStr.endswith(' color'): variableNameStr = variableNameStr.replace(' color', '')