支持更多UI皮肤外观,加入暗色亮色切换键

This commit is contained in:
qingxu fu
2023-09-11 22:55:32 +08:00
parent e699b6b13f
commit d495b73456
5 changed files with 62 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ if THEME == 'Chuanhu-Small-and-Beautiful':
elif THEME == 'High-Contrast':
from .contrast import adjust_theme, advanced_css
theme_declaration = ""
elif '/' in THEME:
from .gradios import adjust_theme, advanced_css
theme_declaration = ""
else:
from .default import adjust_theme, advanced_css
theme_declaration = ""