diff --git a/src/app.html b/src/app.html
index c2268851c..642a570e2 100644
--- a/src/app.html
+++ b/src/app.html
@@ -15,8 +15,9 @@
} else if (localStorage.theme === 'dark') {
document.documentElement.classList.add('dark');
} else {
- document.documentElement.classList.add('dark');
- document.documentElement.classList.add(localStorage.theme);
+ localStorage.theme.split(' ').forEach((e) => {
+ document.documentElement.classList.add(e);
+ });
}
diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte
index 963e616f5..a220bd4eb 100644
--- a/src/lib/components/chat/SettingsModal.svelte
+++ b/src/lib/components/chat/SettingsModal.svelte
@@ -34,7 +34,7 @@
// General
let API_BASE_URL = OLLAMA_API_BASE_URL;
- let themes = ['dark', 'light', 'rose-pine', 'rose-pine-dawn'];
+ let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
let theme = 'dark';
let notificationEnabled = false;
let system = '';
@@ -994,22 +994,22 @@
themes
.filter((e) => e !== theme)
.forEach((e) => {
- document.documentElement.classList.remove(e);
+ e.split(' ').forEach((e) => {
+ document.documentElement.classList.remove(e);
+ });
});
- document.documentElement.classList.add(theme);
-
- if (!['light', 'dark'].includes(theme)) {
- document.documentElement.classList.add('dark');
- }
+ theme.split(' ').forEach((e) => {
+ document.documentElement.classList.add(e);
+ });
console.log(theme);
}}
>
-
-
+
+