diff --git a/frontend/public/backdrops/light/forest.svg b/frontend/public/backdrops/light/forest.svg new file mode 100644 index 0000000..9ecade1 --- /dev/null +++ b/frontend/public/backdrops/light/forest.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/public/backdrops/light/matrix.svg b/frontend/public/backdrops/light/matrix.svg new file mode 100644 index 0000000..b679c1b --- /dev/null +++ b/frontend/public/backdrops/light/matrix.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/public/backdrops/light/midnight.svg b/frontend/public/backdrops/light/midnight.svg new file mode 100644 index 0000000..37dd1b7 --- /dev/null +++ b/frontend/public/backdrops/light/midnight.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/public/backdrops/light/slate.svg b/frontend/public/backdrops/light/slate.svg new file mode 100644 index 0000000..83354ab --- /dev/null +++ b/frontend/public/backdrops/light/slate.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/public/backdrops/light/starship.svg b/frontend/public/backdrops/light/starship.svg new file mode 100644 index 0000000..9ba4aeb --- /dev/null +++ b/frontend/public/backdrops/light/starship.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/public/backdrops/light/youtube.svg b/frontend/public/backdrops/light/youtube.svg new file mode 100644 index 0000000..16cb1ff --- /dev/null +++ b/frontend/public/backdrops/light/youtube.svg @@ -0,0 +1,18 @@ + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index cccc42e..f65e075 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -382,13 +382,13 @@ export default function App() { setAccountRaw(PERF_KEY, perf ? "1" : "0"); }, [perf]); - // The per-scheme background image (the "glass over image" look) is on only in dark theme, when - // the user hasn't opted out, and not in perf mode. Drives `html[data-backdrop]` (see index.css), - // which both paints the image on
and switches the glass to its translucent tier. + // The per-scheme background image (the "glass over image" look) is on when the user hasn't opted + // out and we're not in perf mode. Drives `html[data-backdrop]` (see index.css), which paints the + // theme-appropriate image on (dark or /light/ set) and switches the glass to translucent. useEffect(() => { - const on = theme.mode === "dark" && theme.bgImage && !perf; + const on = theme.bgImage && !perf; document.documentElement.dataset.backdrop = on ? "on" : "off"; - }, [theme.mode, theme.bgImage, perf]); + }, [theme.bgImage, perf]); useEffect(() => setHintsEnabled(hints), [hints]); useEffect(() => configureNotifications(notif), [notif]); diff --git a/frontend/src/components/SettingsPanel.tsx b/frontend/src/components/SettingsPanel.tsx index 8ebd4cc..ea7edfd 100644 --- a/frontend/src/components/SettingsPanel.tsx +++ b/frontend/src/components/SettingsPanel.tsx @@ -165,11 +165,10 @@ function Appearance({ prefs }: { prefs: PrefsController }) {