mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-04-21 04:11:01 -07:00
change color selector in settings to be part of form
This commit is contained in:
parent
2bd2b8b7cf
commit
29fb532764
2 changed files with 8 additions and 2 deletions
|
|
@ -31,3 +31,9 @@ class FormHTML(gr.HTML, gr.components.FormComponent):
|
|||
def get_block_name(self):
|
||||
return "html"
|
||||
|
||||
|
||||
class FormColorPicker(gr.ColorPicker, gr.components.FormComponent):
|
||||
"""Same as gr.ColorPicker but fits inside gradio forms"""
|
||||
|
||||
def get_block_name(self):
|
||||
return "colorpicker"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue