diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-12-15 08:11:59 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-12-15 08:11:59 +0000 |
commit | 0c5427960b3a4ffe6d673c28e8e135b26f015717 (patch) | |
tree | 7b10c76b341af524b9f488592290c7cde9d7d104 /modules/shared_gradio_themes.py | |
parent | cc41cc4349514bbfeb9f37445c931a050b076bd6 (diff) | |
download | stable-diffusion-webui-gfx803-0c5427960b3a4ffe6d673c28e8e135b26f015717.tar.gz stable-diffusion-webui-gfx803-0c5427960b3a4ffe6d673c28e8e135b26f015717.tar.bz2 stable-diffusion-webui-gfx803-0c5427960b3a4ffe6d673c28e8e135b26f015717.zip |
make modal toolbar and icon opacity adjustable
Diffstat (limited to 'modules/shared_gradio_themes.py')
-rw-r--r-- | modules/shared_gradio_themes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/shared_gradio_themes.py b/modules/shared_gradio_themes.py index 822db0a9..b6dc3145 100644 --- a/modules/shared_gradio_themes.py +++ b/modules/shared_gradio_themes.py @@ -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
|