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
27aa1e96
Unverified
Commit
27aa1e96
authored
Jan 01, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 01, 2024
Browse files
Merge pull request #346 from ollama-webui/default-theme-fix
fix: default theme should be dark
parents
73ca167d
936bad45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/app.html
src/app.html
+3
-3
No files found.
src/app.html
View file @
27aa1e96
...
@@ -12,12 +12,12 @@
...
@@ -12,12 +12,12 @@
(
!
(
'
theme
'
in
localStorage
)
&&
window
.
matchMedia
(
'
(prefers-color-scheme: light)
'
).
matches
)
(
!
(
'
theme
'
in
localStorage
)
&&
window
.
matchMedia
(
'
(prefers-color-scheme: light)
'
).
matches
)
)
{
)
{
document
.
documentElement
.
classList
.
add
(
'
light
'
);
document
.
documentElement
.
classList
.
add
(
'
light
'
);
}
else
if
(
localStorage
.
theme
===
'
dark
'
)
{
}
else
if
(
localStorage
.
theme
)
{
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
else
{
localStorage
.
theme
.
split
(
'
'
).
forEach
((
e
)
=>
{
localStorage
.
theme
.
split
(
'
'
).
forEach
((
e
)
=>
{
document
.
documentElement
.
classList
.
add
(
e
);
document
.
documentElement
.
classList
.
add
(
e
);
});
});
}
else
{
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
}
</script>
</script>
...
...
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