Files
openbot/scripts/dev-automation
NBandClaude Opus 5.5 77300f79a7 Add a light theme to the desktop app and the web client (#2949)
* 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>
2026-10-23 19:12:58 +02:00
..