Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
669dbd97
Commit
669dbd97
authored
Jan 23, 2023
by
Shondoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dark mode
Fixes #7048 Co-Authored-By:
J.J. Tolton
<
jjtolton@gmail.com
>
parent
c98cb0f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ui.py
modules/ui.py
+2
-2
No files found.
modules/ui.py
View file @
669dbd97
...
@@ -1942,11 +1942,11 @@ def reload_javascript():
...
@@ -1942,11 +1942,11 @@ def reload_javascript():
if
cmd_opts
.
theme
is
not
None
:
if
cmd_opts
.
theme
is
not
None
:
inline
+=
f
"set_theme('{cmd_opts.theme}');"
inline
+=
f
"set_theme('{cmd_opts.theme}');"
head
+=
f
'<script type="text/javascript">{inline}</script>
\n
'
for
script
in
modules
.
scripts
.
list_scripts
(
"javascript"
,
".js"
):
for
script
in
modules
.
scripts
.
list_scripts
(
"javascript"
,
".js"
):
head
+=
f
'<script type="text/javascript" src="file={script.path}"></script>
\n
'
head
+=
f
'<script type="text/javascript" src="file={script.path}"></script>
\n
'
head
+=
f
'<script type="text/javascript">{inline}</script>
\n
'
def
template_response
(
*
args
,
**
kwargs
):
def
template_response
(
*
args
,
**
kwargs
):
res
=
shared
.
GradioTemplateResponseOriginal
(
*
args
,
**
kwargs
)
res
=
shared
.
GradioTemplateResponseOriginal
(
*
args
,
**
kwargs
)
res
.
body
=
res
.
body
.
replace
(
b
'</head>'
,
f
'{head}</head>'
.
encode
(
"utf8"
))
res
.
body
=
res
.
body
.
replace
(
b
'</head>'
,
f
'{head}</head>'
.
encode
(
"utf8"
))
...
...
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