aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared_gradio_themes.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 13:53:33 +0000
committerGitHub <noreply@github.com>2024-01-01 13:53:33 +0000
commit15156cde18844f459ba101b1356d162aa7f39c47 (patch)
tree7cc25de93251c1ab370a5f96a165a66a7cd47313 /modules/shared_gradio_themes.py
parent0aa7c53c0b9469849377aff83f43c9f75c19b3fa (diff)
parent0c5427960b3a4ffe6d673c28e8e135b26f015717 (diff)
downloadstable-diffusion-webui-gfx803-15156cde18844f459ba101b1356d162aa7f39c47.tar.gz
stable-diffusion-webui-gfx803-15156cde18844f459ba101b1356d162aa7f39c47.tar.bz2
stable-diffusion-webui-gfx803-15156cde18844f459ba101b1356d162aa7f39c47.zip
Merge pull request #14291 from AUTOMATIC1111/on-mouse-hover-show-hide-modal-image-viewer-icons
on mouse hover show / hide modal image viewer icons
Diffstat (limited to 'modules/shared_gradio_themes.py')
-rw-r--r--modules/shared_gradio_themes.py4
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