main
Bob Mottram 2022-05-19 10:47:34 +01:00
parent 3117e6fd0d
commit 40e609fa35
1 changed files with 0 additions and 2 deletions

View File

@ -223,11 +223,9 @@ def html_theme_designer(css_cache: {}, base_dir: str,
'name="submitThemeDesigner" accesskey="' + submit_key + '">' + \
translate['Submit'] + '</button>\n </center>\n'
background = None
contrast_warning = ''
if theme_json.get('main-bg-color'):
background = theme_json['main-bg-color']
foreground = None
if theme_json.get('main-fg-color'):
foreground = theme_json['main-fg-color']
contrast = color_contrast(background, foreground)