Skip to content

Commit 4e55093

Browse files
authored
feat: remove labels from most of the image input fields (#2998)
1 parent 1d1a4a3 commit 4e55093

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ progress::after {
401401
display: none; /* remove this to enable tooltip in preview image */
402402
}
403403

404+
#inpaint_canvas .canvas-tooltip-info {
405+
top: 2px;
406+
}
407+
404408
#inpaint_brush_color input[type=color]{
405409
background: none;
406410
}

language/en.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@
1010
"Upscale or Variation": "Upscale or Variation",
1111
"Image Prompt": "Image Prompt",
1212
"Inpaint or Outpaint": "Inpaint or Outpaint",
13-
"Drag inpaint or outpaint image to here": "Drag inpaint or outpaint image to here",
1413
"Outpaint Direction": "Outpaint Direction",
1514
"Method": "Method",
1615
"Describe": "Describe",
17-
"Drag any image to here": "Drag any image to here",
1816
"Content Type": "Content Type",
1917
"Photograph": "Photograph",
2018
"Art/Anime": "Art/Anime",
2119
"Describe this Image into Prompt": "Describe this Image into Prompt",
2220
"Image Size and Recommended Size": "Image Size and Recommended Size",
2321
"Upscale or Variation:": "Upscale or Variation:",
24-
"Drag above image to here": "Drag above image to here",
2522
"Disabled": "Disabled",
2623
"Vary (Subtle)": "Vary (Subtle)",
2724
"Vary (Strong)": "Vary (Strong)",
@@ -394,7 +391,7 @@
394391
"Fooocus Enhance": "Fooocus Enhance",
395392
"Fooocus Cinematic": "Fooocus Cinematic",
396393
"Fooocus Sharp": "Fooocus Sharp",
397-
"Drag any image generated by Fooocus here": "Drag any image generated by Fooocus here",
394+
"For images created by Fooocus": "For images created by Fooocus",
398395
"Metadata": "Metadata",
399396
"Apply Metadata": "Apply Metadata",
400397
"Metadata Scheme": "Metadata Scheme",

webui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def skip_clicked(currentTask):
152152
with gr.TabItem(label='Upscale or Variation') as uov_tab:
153153
with gr.Row():
154154
with gr.Column():
155-
uov_input_image = grh.Image(label='Drag above image to here', source='upload', type='numpy')
155+
uov_input_image = grh.Image(label='Image', source='upload', type='numpy', show_label=False)
156156
with gr.Column():
157157
uov_method = gr.Radio(label='Upscale or Variation:', choices=flags.uov_list, value=flags.disabled)
158158
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/390" target="_blank">\U0001F4D4 Document</a>')
@@ -201,7 +201,7 @@ def ip_advance_checked(x):
201201
queue=False, show_progress=False)
202202
with gr.TabItem(label='Inpaint or Outpaint') as inpaint_tab:
203203
with gr.Row():
204-
inpaint_input_image = grh.Image(label='Drag inpaint or outpaint image to here', source='upload', type='numpy', tool='sketch', height=500, brush_color="#FFFFFF", elem_id='inpaint_canvas')
204+
inpaint_input_image = grh.Image(label='Image', source='upload', type='numpy', tool='sketch', height=500, brush_color="#FFFFFF", elem_id='inpaint_canvas', show_label=False)
205205
inpaint_mask_image = grh.Image(label='Mask Upload', source='upload', type='numpy', height=500, visible=False)
206206

207207
with gr.Row():
@@ -214,7 +214,7 @@ def ip_advance_checked(x):
214214
with gr.TabItem(label='Describe') as desc_tab:
215215
with gr.Row():
216216
with gr.Column():
217-
desc_input_image = grh.Image(label='Drag any image to here', source='upload', type='numpy')
217+
desc_input_image = grh.Image(label='Image', source='upload', type='numpy', show_label=False)
218218
with gr.Column():
219219
desc_method = gr.Radio(
220220
label='Content Type',
@@ -233,7 +233,7 @@ def trigger_show_image_properties(image):
233233

234234
with gr.TabItem(label='Metadata') as load_tab:
235235
with gr.Column():
236-
metadata_input_image = grh.Image(label='Drag any image generated by Fooocus here', source='upload', type='filepath')
236+
metadata_input_image = grh.Image(label='For images created by Fooocus', source='upload', type='filepath')
237237
metadata_json = gr.JSON(label='Metadata')
238238
metadata_import_button = gr.Button(value='Apply Metadata')
239239

0 commit comments

Comments
 (0)