aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_components.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-26 20:29:27 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-01-26 20:31:32 +0000
commit7a14c8ab45da8a681792a6331d48a88dd684a0a9 (patch)
treee69e23e824ac24c544e0b236367e20742a44a11e /modules/ui_components.py
parent645f4e7ef8c9d59deea7091a22373b2da2b780f2 (diff)
downloadstable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.tar.gz
stable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.tar.bz2
stable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.zip
add an option to enable sections from extras tab in txt2img/img2img
fix some style inconsistenices
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r--modules/ui_components.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py
index 9aec3097..284ca0cf 100644
--- a/modules/ui_components.py
+++ b/modules/ui_components.py
@@ -48,3 +48,11 @@ class FormColorPicker(gr.ColorPicker, gr.components.FormComponent):
def get_block_name(self):
return "colorpicker"
+
+class DropdownMulti(gr.Dropdown):
+ """Same as gr.Dropdown but always multiselect"""
+ def __init__(self, **kwargs):
+ super().__init__(multiselect=True, **kwargs)
+
+ def get_block_name(self):
+ return "dropdown"