add an option to enable sections from extras tab in txt2img/img2img

fix some style inconsistenices
This commit is contained in:
AUTOMATIC
2023-01-26 23:29:27 +03:00
parent 645f4e7ef8
commit 7a14c8ab45
9 changed files with 133 additions and 23 deletions

View File

@@ -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"