make modal toolbar and icon opacity adjustable

This commit is contained in:
w-e-w
2023-12-15 17:11:59 +09:00
parent cc41cc4349
commit 0c5427960b
3 changed files with 8 additions and 2 deletions

View File

@@ -65,3 +65,7 @@ def reload_gradio_theme(theme_name=None):
except Exception as e:
errors.display(e, "changing gradio theme")
shared.gradio_theme = gr.themes.Default(**default_theme_args)
# append additional values gradio_theme
shared.gradio_theme.sd_webui_modal_lightbox_toolbar_opacity = shared.opts.sd_webui_modal_lightbox_toolbar_opacity
shared.gradio_theme.sd_webui_modal_lightbox_icon_opacity = shared.opts.sd_webui_modal_lightbox_icon_opacity