diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-19 05:06:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 05:06:13 +0000 |
commit | 90e560bb7583c16f2595e6f62faeb7934e66edce (patch) | |
tree | 58041a827a343f17bde34306af9fa5e90a25e44f /modules/shared_options.py | |
parent | 9182dd7e5d4e721f98d8292bfdf597897331fa78 (diff) | |
parent | 44d4e7c500a9a6c5cb89db58364d82a886ef2f8c (diff) | |
download | stable-diffusion-webui-gfx803-90e560bb7583c16f2595e6f62faeb7934e66edce.tar.gz stable-diffusion-webui-gfx803-90e560bb7583c16f2595e6f62faeb7934e66edce.tar.bz2 stable-diffusion-webui-gfx803-90e560bb7583c16f2595e6f62faeb7934e66edce.zip |
Merge pull request #12648 from catboxanon/feat/gallery-tweaks
Gallery: Set preview to `True`, allow custom height
Diffstat (limited to 'modules/shared_options.py')
-rw-r--r-- | modules/shared_options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared_options.py b/modules/shared_options.py index 3e4bcaef..8630d474 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -232,6 +232,7 @@ options_templates.update(options_section(('ui', "User interface"), { "localization": OptionInfo("None", "Localization", gr.Dropdown, lambda: {"choices": ["None"] + list(localization.localizations.keys())}, refresh=lambda: localization.list_localizations(cmd_opts.localizations_dir)).needs_reload_ui(),
"gradio_theme": OptionInfo("Default", "Gradio theme", ui_components.DropdownEditable, lambda: {"choices": ["Default"] + shared_gradio_themes.gradio_hf_hub_themes}).info("you can also manually enter any of themes from the <a href='https://huggingface.co/spaces/gradio/theme-gallery'>gallery</a>.").needs_reload_ui(),
"gradio_themes_cache": OptionInfo(True, "Cache gradio themes locally").info("disable to update the selected Gradio theme"),
+ "gallery_height": OptionInfo("", "Gallery height", gr.Textbox).info("an be any valid CSS value").needs_reload_ui(),
"return_grid": OptionInfo(True, "Show grid in results for web"),
"do_not_show_images": OptionInfo(False, "Do not show any images in results for web"),
"send_seed": OptionInfo(True, "Send seed when sending prompt or image to other interface"),
|