From cde9672a0958f29c8f91a3b1d2d16840854cf538 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 12 Jun 2024 00:05:20 -0700 Subject: [PATCH] enh: her --- src/app.html | 89 +++++++++++++++++- .../components/chat/Settings/General.svelte | 1 + src/routes/+layout.svelte | 30 +++++- static/audio/greeting.mp3 | Bin 0 -> 16320 bytes 4 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 static/audio/greeting.mp3 diff --git a/src/app.html b/src/app.html index a71d5ff4c..3248fd447 100644 --- a/src/app.html +++ b/src/app.html @@ -32,6 +32,9 @@ } else if (localStorage.theme && localStorage.theme === 'system') { systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches; document.documentElement.classList.add(systemTheme ? 'dark' : 'light'); + } else if (localStorage.theme && localStorage.theme === 'her') { + document.documentElement.classList.add('dark'); + document.documentElement.classList.add('her'); } else { document.documentElement.classList.add('dark'); } @@ -68,17 +71,66 @@ + + +
+ +
+ @@ -101,4 +153,37 @@ html.dark #splash-screen img { filter: invert(1); } + + html.her #splash-screen { + background: #983724; + } + + #logo-her { + display: none; + } + + #progress-background { + display: none; + } + + #progress-bar { + display: none; + } + + html.her #logo { + display: none; + } + + html.her #logo-her { + display: block; + filter: invert(1); + } + + html.her #progress-background { + display: block; + } + + html.her #progress-bar { + display: block; + } diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index 27dc6427e..5b6ecfa1c 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -140,6 +140,7 @@ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 61cef212a..c8e31b6c8 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,5 +1,8 @@