Spaces:
Sleeping
Sleeping
Commit History
-
fix: add color-scheme declaration to prevent browser auto-darkening
icebear0828Browsers with Auto Dark Mode (Chrome/Safari on macOS dark) override CSS colors when color-scheme is not declared. Added color-scheme: light/dark to :root/.dark CSS, index.html meta tag, and JS toggle to explicitly control the color scheme per theme state.f3c6831
-
fix: dark mode not applying on initial load
icebear0828 +1: Claude Opus 4.6 (1M context)ThemeProvider only set the dark class on toggle, not on initialization. Users with system dark mode or saved "dark" preference would see light theme until they manually toggled. Now sync dark class to <html> before first render. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>b4b60dc
-
refactor: extract startServer() + path abstraction for Electron reuse
icebear0828 +1: Claude Opus 4.6- Export startServer(options?) from src/index.ts so Electron can import it - Add src/paths.ts: centralized path getters (getConfigDir, getDataDir, etc.) with setPaths() hook for Electron to redirect to userData - Replace all process.cwd() calls with path getters across src/ - Extract shared/ from web/ (i18n, theme, hooks, utils) for desktop reuse - Add /desktop route in web.ts (serves desktop UI if built, no-op otherwise) CLI behavior is unchanged — all path getters default to process.cwd(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4a940a5