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
a7d6fc3b
Commit
a7d6fc3b
authored
Mar 27, 2023
by
AUTOMATIC1111
Committed by
GitHub
Mar 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8569 from missionfloyd/extra-networks-toggle
Make extra networks button togglable
parents
c5e1efb4
254ad09e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
javascript/hints.js
javascript/hints.js
+1
-2
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+2
-2
style.css
style.css
+7
-0
No files found.
javascript/hints.js
View file @
a7d6fc3b
...
...
@@ -21,8 +21,7 @@ titles = {
"
\
u{1f5d1}
\
ufe0f
"
:
"
Clear prompt
"
,
"
\
u{1f4cb}
"
:
"
Apply selected styles to current prompt
"
,
"
\
u{1f4d2}
"
:
"
Paste available values into the field
"
,
"
\
u{1f3b4}
"
:
"
Show extra networks
"
,
"
\
u{1f3b4}
"
:
"
Show/hide extra networks
"
,
"
Inpaint a part of image
"
:
"
Draw a mask over an image, and the script will regenerate the masked area with content according to prompt
"
,
"
SD upscale
"
:
"
Upscale image normally, split result into tiles, improve each tile using img2img, merge whole image back
"
,
...
...
modules/ui_extra_networks.py
View file @
a7d6fc3b
...
...
@@ -252,10 +252,10 @@ def create_ui(container, button, tabname):
def
toggle_visibility
(
is_visible
):
is_visible
=
not
is_visible
return
is_visible
,
gr
.
update
(
visible
=
is_visible
)
return
is_visible
,
gr
.
update
(
visible
=
is_visible
)
,
gr
.
update
(
variant
=
(
"primary"
if
is_visible
else
"tool"
))
state_visible
=
gr
.
State
(
value
=
False
)
button
.
click
(
fn
=
toggle_visibility
,
inputs
=
[
state_visible
],
outputs
=
[
state_visible
,
container
])
button
.
click
(
fn
=
toggle_visibility
,
inputs
=
[
state_visible
],
outputs
=
[
state_visible
,
container
,
button
])
def
refresh
():
res
=
[]
...
...
style.css
View file @
a7d6fc3b
...
...
@@ -810,3 +810,10 @@ footer {
.extra-network-cards
.card
ul
a
:hover
{
color
:
red
;
}
button
[
id
$
=
'_extra_networks'
]
{
max-width
:
2.2em
;
min-width
:
2.2em
!important
;
height
:
2.4em
;
line-height
:
1em
!important
;
}
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