mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
update themes
This commit is contained in:
@@ -1054,7 +1054,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
|
||||
image = images.resize_image(self.resize_mode, image, self.width, self.height)
|
||||
self.width = image.width
|
||||
self.height = image.height
|
||||
print('HERE2', self.width, self.height)
|
||||
image_masked = Image.new('RGBa', (image.width, image.height))
|
||||
image_masked.paste(image.convert("RGBA").convert("RGBa"), mask=ImageOps.invert(self.mask_for_overlay.convert('L')))
|
||||
self.mask = image_mask # assign early for diffusers
|
||||
|
||||
+1
-1
@@ -261,7 +261,7 @@ def list_themes():
|
||||
res = []
|
||||
list_builtin_themes()
|
||||
builtin = list_builtin_themes() + ["gradio/default", "gradio/base", "gradio/glass", "gradio/monochrome", "gradio/soft"]
|
||||
themes = sorted(set(builtin + [x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()]), key=str.casefold)
|
||||
themes = sorted(builtin) + sorted({x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()}, key=str.casefold)
|
||||
return themes
|
||||
|
||||
|
||||
|
||||
+3
-1
@@ -1181,10 +1181,12 @@ def html_body():
|
||||
|
||||
def html_css():
|
||||
added = []
|
||||
|
||||
def stylesheet(fn):
|
||||
added.append(fn)
|
||||
return f'<link rel="stylesheet" property="stylesheet" href="{webpath(fn)}">'
|
||||
head = stylesheet('javascript/style.css')
|
||||
|
||||
head = stylesheet(os.path.join(script_path, 'javascript/style.css'))
|
||||
for cssfile in modules.scripts.list_files_with_name("style.css"):
|
||||
if not os.path.isfile(cssfile):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user