mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-12-03 02:00:16 +08:00
* Add a light theme to the desktop app and the web client Settings has a new Theme row: System, Light and Dark. Dark is the default, so the app does not change after an update. - tokens-light.css changes the palette when the root element has data-openbot-color-scheme="light". Light mode has no drop shadows. - Desktop: main keeps the choice in a userData file and sets nativeTheme.themeSource. Each window follows prefers-color-scheme. The Dynamic Island stays dark. - Web /app: this browser keeps the choice. A head script shows it before the first paint. The public pages stay dark. - Toasts, Mermaid and chat visuals follow the theme. - dev:automation removes the light color-scheme emulation of playwright-core, and scripts/appearance-e2e.ts checks each choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep visited websites and native menus on the computer's colors Main no longer sets nativeTheme.themeSource. That setting applies to the whole app, so the default Dark also made websites in the in-app browser and the native menus dark on a light Mac. Now each OpenBot window applies the saved choice itself and resolves System from prefers-color-scheme, as the web client does. A copy in the window's localStorage gives the first paint. Main sets the native window background from the choice. The E2E script now checks that Light and Dark do not change prefers-color-scheme. Web /app clears its theme when another tab clears the browser storage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>