mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
ui fix send to inpaint/sketch
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
- ui use correct timezone for log display
|
||||
- ui improve settings search behavior
|
||||
- ui log scroll to bottom
|
||||
- ui fix send to inpaint/sketch
|
||||
- modernui add control init image toggle
|
||||
- outpaint fixes
|
||||
|
||||
|
||||
+2
-2
@@ -127,13 +127,13 @@ function switch_to_img2img(...args) {
|
||||
return Array.from(arguments);
|
||||
}
|
||||
|
||||
function switch_to_sketch(...args) {
|
||||
function switch_to_inpaint(...args) {
|
||||
switchToTab('Image');
|
||||
switch_to_img2img_tab(1);
|
||||
return Array.from(arguments);
|
||||
}
|
||||
|
||||
function switch_to_inpaint(...args) {
|
||||
function switch_to_sketch(...args) {
|
||||
switchToTab('Image');
|
||||
switch_to_img2img_tab(2);
|
||||
return Array.from(arguments);
|
||||
|
||||
@@ -56,12 +56,12 @@ def create_ui():
|
||||
|
||||
def add_copy_image_controls(tab_name, elem):
|
||||
with gr.Row(variant="compact", elem_id=f"img2img_copy_to_{tab_name}"):
|
||||
for title, name in zip(['➠ Image', '➠ Inpaint', '➠ Sketch', '➠ Composite'], ['img2img', 'sketch', 'inpaint', 'composite']):
|
||||
for title, name in zip(['➠ Image', '➠ Inpaint', '➠ Sketch', '➠ Composite'], ['img2img', 'inpaint', 'sketch', 'composite']):
|
||||
if name == tab_name:
|
||||
gr.Button(title, elem_id=f'copy_to_{name}', interactive=False)
|
||||
gr.Button(title, elem_id=f'{tab_name}_copy_to_{name}', interactive=False)
|
||||
copy_image_destinations[name] = elem
|
||||
continue
|
||||
button = gr.Button(title, elem_id=f'copy_to_{name}')
|
||||
button = gr.Button(title, elem_id=f'{tab_name}_copy_to_{name}')
|
||||
copy_image_buttons.append((button, name, elem))
|
||||
|
||||
with gr.Tabs(elem_id="mode_img2img"):
|
||||
|
||||
Reference in New Issue
Block a user