Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b93bdfb2
"...git@developer.sourcefind.cn:modelzoo/qwen_lmdeploy.git" did not exist on "4b12118014056b3ede06b7a5d41ea173dc55a548"
Commit
b93bdfb2
authored
Mar 28, 2024
by
Timothy J. Baek
Browse files
fix: theme issue
parent
c85a2e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/app.html
src/app.html
+2
-3
No files found.
src/app.html
View file @
b93bdfb2
...
...
@@ -9,12 +9,11 @@
<script>
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
(()
=>
{
if
(
localStorage
.
theme
.
includes
(
'
oled
'
))
{
if
(
localStorage
?.
theme
&&
localStorage
?
.
theme
.
includes
(
'
oled
'
))
{
document
.
documentElement
.
style
.
setProperty
(
'
--color-gray-900
'
,
'
#000000
'
);
document
.
documentElement
.
style
.
setProperty
(
'
--color-gray-950
'
,
'
#000000
'
);
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
else
if
(
}
else
if
(
localStorage
.
theme
===
'
light
'
||
(
!
(
'
theme
'
in
localStorage
)
&&
window
.
matchMedia
(
'
(prefers-color-scheme: light)
'
).
matches
)
)
{
...
...
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