minor fixes

This commit is contained in:
Vladimir Mandic
2024-02-23 08:54:32 -05:00
parent 1b976f610c
commit 1bbcf2e13d
5 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -49,7 +49,11 @@ def list_themes():
if f.endswith('.css'):
engines.append(f'modern/{os.path.splitext(f)[0]}')
if 'sd-webui-lobe-theme' in extensions:
modules.shared.log.info('Theme: installed="lobe"')
engines.append('lobe')
if 'Cozy-Nest' in extensions:
modules.shared.log.info('Theme: installed="cozy-nest"')
engines.append('cozy-nest')
gradio = ["gradio/default", "gradio/base", "gradio/glass", "gradio/monochrome", "gradio/soft"]
huggingface = refresh_themes(no_update=True)
huggingface = {x['id'] for x in huggingface if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()}
@@ -75,7 +79,7 @@ def reload_gradio_theme(theme_name=None):
gradio_theme = gr.themes.Base(**default_font_params)
modules.shared.log.info(f'UI theme: name="{theme_name}" style={modules.shared.opts.theme_style} base={base}')
return True
elif theme_name.lower() in ['lobe']:
elif theme_name.lower() in ['lobe', 'cozy-nest']:
gradio_theme = gr.themes.Base(**default_font_params)
modules.shared.log.info(f'UI theme: name="{theme_name}" style={modules.shared.opts.theme_style} base={base}')
elif theme_name.lower() == 'modern' or theme_name.lower().startswith('modern/'):