Chrome's Auto Dark Theme and Safari's Adaptive Dark Mode (Safari 27.3
beta) repaint pages that don't declare dark support. magpie's GUI draws
both themes itself but never said so, so a browser's light magpie was
repainted. WebKit's post (webkit.org/blog/18541) and Chrome's
(developer.chrome.com/blog/auto-dark-theme) say: `color-scheme: light
dark` (CSS on :root or the meta) is skipped; `light only` opts an element
out (Safari 27.3 beta 1 doesn't honour `only` yet).
- index.html: <meta name="color-scheme" content="light dark">.
- app.css: :root takes `light dark` always (the signal browsers read);
body takes the theme shown: Settings' Light is `light only`, Dark is
`dark`, System follows the root. Native controls, scrollbars and a
plugin's frame follow the theme shown.
- pagebridge.js: a plugin page's light frame is `light only`.
- The other pages magpie serves (magpie web's sign-in, a sign-in's end
page, an MCP sign-in's end page, a plugin service's "starting" page)
declare `light dark`; the MCP page drops its fixed#222 text so it
reads on a dark canvas. keypage.html and the extension popup already
did; site/ pages already do.
Tests: color-scheme.test.cjs (chromium + webkit; system/light/dark on a
dark OS: meta, root and body schemes), TestPagesDeclareBothColorSchemes,
TestSignInPageDeclaresBothColorSchemes, TestPageDeclaresBothColorSchemes.
Run (mote, before the rebase on origin/main 6bcdc6468): the new GUI
file 6/6 in chromium + webkit; checkbox-look 8/8, plugin-page,
plugin-panels and plugin-page-idle 14/14; go test of the new tests and
-run "PluginPage|Page|Bridge|SignIn" in internal/gui, internal/provider,
internal/mcpauth ok; go vet darwin, linux (nogui), windows ok; gofmt
clean. api-key-theme is red 6/6 here and on origin/main 2f2a0afa5 alone
(#6444, a #lanList selector matches nothing).
At the pushed head (after the rebase): color-scheme.test.cjs 6/6 and
-run "ColorScheme|Budget" in the three packages ok.
Broken by hand: the four new tests on origin/main's code (2f2a0afa5)
are all red (GUI 0/6, three Go tests FAIL).
Not tried: Safari 27.3 beta's Adaptive Dark Mode and Chrome's Auto Dark
Theme themselves (no beta device here); the real app's windows (Wails
WebKit, WebView2, WebKitGTK) with the root's new color-scheme; the full
GUI suite.