From 37563ffe6edb636147b539a4fb86efff206e9916 Mon Sep 17 00:00:00 2001 From: Ilia Sharin Date: Thu, 7 May 2026 17:13:31 -0400 Subject: [PATCH] Add dark mode with system/light/dark theme selector in Appearance --- web/admin.jsx | 19 +++++++ web/app.jsx | 16 +++++- web/styles.css | 47 +++++++++++++++++ webapp/index-style-v2.html | 103 ++++++++++++++++++++++++++++++++++++- 4 files changed, 183 insertions(+), 2 deletions(-) diff --git a/web/admin.jsx b/web/admin.jsx index cf47a1e..2eccc00 100644 --- a/web/admin.jsx +++ b/web/admin.jsx @@ -406,11 +406,30 @@ const ICON_STYLES = [ { value: 'ascii', label: 'ASCII', hint: 'Plain text glyphs: [ ] [/] [!] …' }, ]; +const THEMES = [ + { value: 'system', label: 'System', hint: 'Follow OS light / dark setting' }, + { value: 'light', label: 'Light', hint: 'Always light' }, + { value: 'dark', label: 'Dark', hint: 'Always dark' }, +]; + function AppearanceCard({ tweaks, setTweak }) { const current = tweaks?.status_style || 'color'; + const theme = tweaks?.theme || 'system'; return (

Appearance

+
Theme
+
+ {THEMES.map(t => ( + + ))} +
+
Status icons
{ICON_STYLES.map(opt => (