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
f55dae30
Commit
f55dae30
authored
Mar 16, 2024
by
Danny Liu
Browse files
fix merge conflict
parent
db0712ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/lib/components/chat/Settings/General.svelte
src/lib/components/chat/Settings/General.svelte
+4
-4
No files found.
src/lib/components/chat/Settings/General.svelte
View file @
f55dae30
...
@@ -117,9 +117,9 @@
...
@@ -117,9 +117,9 @@
function handleThemeChange(newTheme: string) {
function handleThemeChange(newTheme: string) {
selectedTheme = newTheme;
selectedTheme = newTheme;
setTheme(newTheme);
// Update the store
setTheme(newTheme);
localStorage.setItem('theme', newTheme);
// Persist the theme selection
localStorage.setItem('theme', newTheme);
applyTheme(newTheme);
// Apply the selected theme
applyTheme(newTheme);
}
}
</script>
</script>
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
<div class="flex items-center relative">
<div class="flex items-center relative">
<select
<select
class=" dark:bg-gray-900 w-fit pr-8 rounded py-2 px-2 text-xs bg-transparent outline-none text-right"
class=" dark:bg-gray-900 w-fit pr-8 rounded py-2 px-2 text-xs bg-transparent outline-none text-right"
bind:value={
t
heme}
bind:value={
selectedT
heme}
placeholder="Select a theme"
placeholder="Select a theme"
on:change="{() => handleThemeChange(selectedTheme)}"
on:change="{() => handleThemeChange(selectedTheme)}"
>
>
...
...
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