diff --git a/apps/stable_diffusion/web/ui/css/sd_dark_theme.css b/apps/stable_diffusion/web/ui/css/sd_dark_theme.css index e753a1c1db..d1a2db08dd 100644 --- a/apps/stable_diffusion/web/ui/css/sd_dark_theme.css +++ b/apps/stable_diffusion/web/ui/css/sd_dark_theme.css @@ -231,6 +231,16 @@ footer { display: none; } +/* reduced animation load when generating */ +.generating { + animation-play-state: paused !important; +} + +/* better clarity when progress bars are minimal */ +.meta-text { + background-color: var(--block-label-background-fill); +} + /* output gallery tab */ .output_parameters_dataframe tbody td { font-size: small; diff --git a/apps/stable_diffusion/web/ui/img2img_ui.py b/apps/stable_diffusion/web/ui/img2img_ui.py index d3f87d38d9..ea96036451 100644 --- a/apps/stable_diffusion/web/ui/img2img_ui.py +++ b/apps/stable_diffusion/web/ui/img2img_ui.py @@ -650,7 +650,7 @@ def create_canvas(w, h): ondemand, ], outputs=[img2img_gallery, std_output, img2img_status], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) status_kwargs = dict( diff --git a/apps/stable_diffusion/web/ui/inpaint_ui.py b/apps/stable_diffusion/web/ui/inpaint_ui.py index c13f5eacad..6bd5a3c37b 100644 --- a/apps/stable_diffusion/web/ui/inpaint_ui.py +++ b/apps/stable_diffusion/web/ui/inpaint_ui.py @@ -550,7 +550,7 @@ def inpaint_api( ondemand, ], outputs=[inpaint_gallery, std_output, inpaint_status], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) status_kwargs = dict( fn=lambda bc, bs: status_label("Inpaint", 0, bc, bs), diff --git a/apps/stable_diffusion/web/ui/lora_train_ui.py b/apps/stable_diffusion/web/ui/lora_train_ui.py index c8e00fdad4..9109c111b2 100644 --- a/apps/stable_diffusion/web/ui/lora_train_ui.py +++ b/apps/stable_diffusion/web/ui/lora_train_ui.py @@ -215,7 +215,7 @@ ), ], outputs=[std_output], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) prompt_submit = prompt.submit(**kwargs) diff --git a/apps/stable_diffusion/web/ui/outpaint_ui.py b/apps/stable_diffusion/web/ui/outpaint_ui.py index 35fb93ee63..9439dd1506 100644 --- a/apps/stable_diffusion/web/ui/outpaint_ui.py +++ b/apps/stable_diffusion/web/ui/outpaint_ui.py @@ -578,7 +578,7 @@ def outpaint_api( ondemand, ], outputs=[outpaint_gallery, std_output, outpaint_status], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) status_kwargs = dict( fn=lambda bc, bs: status_label("Outpaint", 0, bc, bs), diff --git a/apps/stable_diffusion/web/ui/txt2img_ui.py b/apps/stable_diffusion/web/ui/txt2img_ui.py index 6e9ff38860..03185f5b92 100644 --- a/apps/stable_diffusion/web/ui/txt2img_ui.py +++ b/apps/stable_diffusion/web/ui/txt2img_ui.py @@ -524,7 +524,7 @@ def txt2img_api( ondemand, ], outputs=[txt2img_gallery, std_output, txt2img_status], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) status_kwargs = dict( diff --git a/apps/stable_diffusion/web/ui/upscaler_ui.py b/apps/stable_diffusion/web/ui/upscaler_ui.py index 882da8a957..f36138f608 100644 --- a/apps/stable_diffusion/web/ui/upscaler_ui.py +++ b/apps/stable_diffusion/web/ui/upscaler_ui.py @@ -554,7 +554,7 @@ def upscaler_api( ondemand, ], outputs=[upscaler_gallery, std_output, upscaler_status], - show_progress=args.progress_bar, + show_progress="minimal" if args.progress_bar else "none", ) status_kwargs = dict( fn=lambda bc, bs: status_label("Upscaler", 0, bc, bs),