diff --git a/modules/shared_options.py b/modules/shared_options.py index 05c209eb..16dd5948 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -348,17 +348,17 @@ options_templates.update( options_section( ("ui_gallery", "Gallery", "ui"), { - "return_grid": OptionInfo(True, "Show grid in gallery"), - "do_not_show_images": OptionInfo(False, "Do not show any images in gallery"), - "js_modal_lightbox": OptionInfo(True, "Full page image viewer: enable"), - "js_modal_lightbox_initially_zoomed": OptionInfo(True, "Full page image viewer: show images zoomed in by default"), - "js_modal_lightbox_gamepad": OptionInfo(False, "Full page image viewer: navigate with gamepad"), - "js_modal_lightbox_gamepad_repeat": OptionInfo(250, "Full page image viewer: gamepad repeat period").info("in milliseconds"), - "sd_webui_modal_lightbox_icon_opacity": OptionInfo(1, "Full page image viewer: control icon unfocused opacity", gr.Slider, {"minimum": 0.0, "maximum": 1, "step": 0.01}, onchange=shared.reload_gradio_theme).info("for mouse only").needs_reload_ui(), - "sd_webui_modal_lightbox_toolbar_opacity": OptionInfo(0.9, "Full page image viewer: tool bar opacity", gr.Slider, {"minimum": 0.0, "maximum": 1, "step": 0.01}, onchange=shared.reload_gradio_theme).info("for mouse only").needs_reload_ui(), - "gallery_height": OptionInfo("", "Gallery height", gr.Textbox).info("can be any valid CSS value, for example 768px or 20em").needs_reload_ui(), - "open_dir_button_choice": OptionInfo("Subdirectory", "What directory the [📂] button opens", gr.Radio, {"choices": ["Output Root", "Subdirectory", "Subdirectory (even temp dir)"]}), - "hires_button_gallery_insert": OptionInfo(False, "Insert [✨] hires button results into gallery").info("Default: original image will be replaced"), + "do_not_show_images": OptionInfo(False, "Do not show any image in gallery"), + "gallery_height": OptionInfo("", "Gallery Height", gr.Textbox).info("in CSS value; e.g. 768px or 20em").needs_reload_ui(), + "return_grid": OptionInfo(True, "Show Grids in gallery").info("e.g. for X/Y/Z Plot"), + "js_modal_lightbox": OptionInfo(True, 'Enable "Lightbox"').info("Full Page Image Viewer"), + "js_modal_lightbox_initially_zoomed": OptionInfo(True, "[Lightbox]: show images zoomed in by default"), + "js_modal_lightbox_gamepad": OptionInfo(False, "[Lightbox]: navigate with gamepad"), + "js_modal_lightbox_gamepad_repeat": OptionInfo(250, "[Lightbox]: gamepad repeat period").info("in ms"), + "sd_webui_modal_lightbox_icon_opacity": OptionInfo(1.0, "[Lightbox]: control icon unfocused opacity", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.05}, onchange=shared.reload_gradio_theme).info("for mouse only").needs_reload_ui(), + "sd_webui_modal_lightbox_toolbar_opacity": OptionInfo(0.9, "[Lightbox]: tool bar opacity", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.05}, onchange=shared.reload_gradio_theme).info("for mouse only").needs_reload_ui(), + "open_dir_button_choice": OptionInfo("Subdirectory", "What directory the [📂] button opens", gr.Radio, {"choices": ("Output Root", "Subdirectory", "Subdirectory (even temp dir)")}), + "hires_button_gallery_insert": OptionInfo(False, "When using the [✨] button, insert the upscaled image to the gallery").info("otherwise replace the selected image in the gallery"), }, ) )