mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
theme fallback
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
- PixArt-Σ requires `diffusers-0.28.0.dev0`
|
||||
|
||||
## Update for 2024-04-11
|
||||
## Update for 2024-04-12
|
||||
|
||||
- **Features**:
|
||||
- **Gallery**: list, preview, search through all your images and videos!
|
||||
|
||||
@@ -61,6 +61,12 @@ def list_themes():
|
||||
modules.shared.log.debug(f'UI themes available: type={modules.shared.opts.theme_type} themes={len(builtin)}')
|
||||
elif modules.shared.opts.theme_type == 'Modern':
|
||||
ext = next((e for e in modules.extensions.extensions if e.name == 'sdnext-ui-ux'), None)
|
||||
if ext is None:
|
||||
modules.shared.log.error('UI themes: ModernUI not found')
|
||||
builtin = list_builtin_themes()
|
||||
themes = sorted(builtin)
|
||||
modules.shared.opts.theme_type = 'Standard'
|
||||
return themes
|
||||
folder = os.path.join(ext.path, 'themes')
|
||||
themes = []
|
||||
if os.path.exists(folder):
|
||||
|
||||
Reference in New Issue
Block a user