Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
eddcdb80
Commit
eddcdb80
authored
Apr 17, 2023
by
Matěj Račinský
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds label to buttons to make them hide
parent
22bcc7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/ui.py
modules/ui.py
+4
-4
No files found.
modules/ui.py
View file @
eddcdb80
...
@@ -171,8 +171,8 @@ def create_seed_inputs(target_interface):
...
@@ -171,8 +171,8 @@ def create_seed_inputs(target_interface):
with
FormRow
(
elem_id
=
target_interface
+
'_seed_row'
,
variant
=
"compact"
):
with
FormRow
(
elem_id
=
target_interface
+
'_seed_row'
,
variant
=
"compact"
):
seed
=
(
gr
.
Textbox
if
cmd_opts
.
use_textbox_seed
else
gr
.
Number
)(
label
=
'Seed'
,
value
=-
1
,
elem_id
=
target_interface
+
'_seed'
)
seed
=
(
gr
.
Textbox
if
cmd_opts
.
use_textbox_seed
else
gr
.
Number
)(
label
=
'Seed'
,
value
=-
1
,
elem_id
=
target_interface
+
'_seed'
)
seed
.
style
(
container
=
False
)
seed
.
style
(
container
=
False
)
random_seed
=
ToolButton
(
random_symbol
,
elem_id
=
target_interface
+
'_random_seed'
)
random_seed
=
ToolButton
(
random_symbol
,
elem_id
=
target_interface
+
'_random_seed'
,
label
=
'Random seed'
)
reuse_seed
=
ToolButton
(
reuse_symbol
,
elem_id
=
target_interface
+
'_reuse_seed'
)
reuse_seed
=
ToolButton
(
reuse_symbol
,
elem_id
=
target_interface
+
'_reuse_seed'
,
label
=
'Reuse seed'
)
seed_checkbox
=
gr
.
Checkbox
(
label
=
'Extra'
,
elem_id
=
target_interface
+
'_subseed_show'
,
value
=
False
)
seed_checkbox
=
gr
.
Checkbox
(
label
=
'Extra'
,
elem_id
=
target_interface
+
'_subseed_show'
,
value
=
False
)
...
@@ -468,7 +468,7 @@ def create_ui():
...
@@ -468,7 +468,7 @@ def create_ui():
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"txt2img_height"
)
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"txt2img_height"
)
with
gr
.
Column
(
elem_id
=
"txt2img_dimensions_row"
,
scale
=
1
,
elem_classes
=
"dimensions-tools"
):
with
gr
.
Column
(
elem_id
=
"txt2img_dimensions_row"
,
scale
=
1
,
elem_classes
=
"dimensions-tools"
):
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"txt2img_res_switch_btn"
)
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"txt2img_res_switch_btn"
,
label
=
"Switch dims"
)
if
opts
.
dimensions_and_batch_together
:
if
opts
.
dimensions_and_batch_together
:
with
gr
.
Column
(
elem_id
=
"txt2img_column_batch"
):
with
gr
.
Column
(
elem_id
=
"txt2img_column_batch"
):
...
@@ -1705,7 +1705,7 @@ def create_ui():
...
@@ -1705,7 +1705,7 @@ def create_ui():
if
init_field
is
not
None
:
if
init_field
is
not
None
:
init_field
(
saved_value
)
init_field
(
saved_value
)
if
type
(
x
)
in
[
gr
.
Slider
,
gr
.
Radio
,
gr
.
Checkbox
,
gr
.
Textbox
,
gr
.
Number
,
gr
.
Dropdown
]
and
x
.
visible
:
if
type
(
x
)
in
[
gr
.
Slider
,
gr
.
Radio
,
gr
.
Checkbox
,
gr
.
Textbox
,
gr
.
Number
,
gr
.
Dropdown
,
ToolButton
]
and
x
.
visible
:
apply_field
(
x
,
'visible'
)
apply_field
(
x
,
'visible'
)
if
type
(
x
)
==
gr
.
Slider
:
if
type
(
x
)
==
gr
.
Slider
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment