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
+2
View File
@@ -58,6 +58,8 @@ def html_css(is_builtin: bool):
head += stylesheet(cssfile)
theme_name = modules.shared.cmd_opts.theme or modules.shared.opts.gradio_theme or ''
if theme_name == 'default':
theme_name = 'black-teal'
if theme_name.startswith('modern/'):
theme_name = theme_name[7:]
theme_folder = next((e.path for e in modules.extensions.extensions if e.name == 'sdnext-ui-ux'), None)