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
a70ae917
Commit
a70ae917
authored
Mar 27, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update button pressed down style for #8569
parent
a7d6fc3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+1
-1
style.css
style.css
+12
-7
No files found.
modules/ui_extra_networks.py
View file @
a70ae917
...
@@ -252,7 +252,7 @@ def create_ui(container, button, tabname):
...
@@ -252,7 +252,7 @@ def create_ui(container, button, tabname):
def
toggle_visibility
(
is_visible
):
def
toggle_visibility
(
is_visible
):
is_visible
=
not
is_visible
is_visible
=
not
is_visible
return
is_visible
,
gr
.
update
(
visible
=
is_visible
),
gr
.
update
(
variant
=
(
"
primary"
if
is_visible
else
"tool
"
))
return
is_visible
,
gr
.
update
(
visible
=
is_visible
),
gr
.
update
(
variant
=
(
"
secondary-down"
if
is_visible
else
"secondary
"
))
state_visible
=
gr
.
State
(
value
=
False
)
state_visible
=
gr
.
State
(
value
=
False
)
button
.
click
(
fn
=
toggle_visibility
,
inputs
=
[
state_visible
],
outputs
=
[
state_visible
,
container
,
button
])
button
.
click
(
fn
=
toggle_visibility
,
inputs
=
[
state_visible
],
outputs
=
[
state_visible
,
container
,
button
])
...
...
style.css
View file @
a70ae917
...
@@ -138,6 +138,18 @@ div.gradio-html.min{
...
@@ -138,6 +138,18 @@ div.gradio-html.min{
border-radius
:
0.5em
;
border-radius
:
0.5em
;
}
}
.gradio-button.secondary-down
{
background
:
var
(
--button-secondary-background-fill
);
color
:
var
(
--button-secondary-text-color
);
}
.gradio-button.secondary-down
,
.gradio-button.secondary-down
:hover
{
box-shadow
:
1px
1px
1px
rgba
(
0
,
0
,
0
,
0.25
)
inset
,
0px
0px
3px
rgba
(
0
,
0
,
0
,
0.15
)
inset
;
}
.gradio-button.secondary-down
:hover
{
background
:
var
(
--button-secondary-background-fill-hover
);
color
:
var
(
--button-secondary-text-color-hover
);
}
.checkboxes-row
{
.checkboxes-row
{
margin-bottom
:
0.5em
;
margin-bottom
:
0.5em
;
margin-left
:
0em
;
margin-left
:
0em
;
...
@@ -810,10 +822,3 @@ footer {
...
@@ -810,10 +822,3 @@ footer {
.extra-network-cards
.card
ul
a
:hover
{
.extra-network-cards
.card
ul
a
:hover
{
color
:
red
;
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