Follow desktop colours live: watch scheme.json and kdeglobals, take Caelestia's mode

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-12-03 10:06:15 -06:00
commit af09e4d359

View file

@ -575,6 +575,12 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Not done: named profiles, a master-password vault, the old reading list, settings and cookies of the old Nacre; the native file dialog; the user's real data (they press Import).
- Later: the binary logs a CRITICAL about the build folder's tests/smoke/pages (compiled-in path) at start; `install.sh` has no lock against running twice and wipes `target/` even while a cargo build uses it.
## Desktop colours live (2026-12-03)
- Nacre follows Caelestia's `scheme.json` and KDE's `kdeglobals` live: the tick checks their mtimes (`theme::file_stamps`) about every second; on a change it re-reads the system accent and dark mode and restyles every window (no restart).
- "System" theme mode now takes Caelestia's `mode` (dark/light) first, then GTK, then GNOME (`theme::system_dark`).
- Verified: `cargo test` 103 + webext 1; hidden smoke on a throwaway home: scheme.json rewritten from purple/dark to green/light mid-run, the new tab page and chrome went green and light (before/after shots read).
- Not done: GNOME portal `accent-color` live watch.
## Later
- A link followed inside a frame still goes through the tab's navigation policy (WebKit's GTK API has no frame info; S050).
- file:// media outside the XDG user folders doesn't play (WebKit sandbox, D-043).
@ -583,7 +589,7 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Bookmark flyout stays open after switching tabs and shows the old page's bookmark (S006 keys.txt shot).
- Wikipedia search widget ignores the selftest's Enter (plain forms submit); check with a real keyboard (S006).
- YouTube's result list lays out at zero size; CSS mask-image icons paint as squares (Servo layout, S006).
- System accent: watch caelestia scheme.json / the portal `accent-color` and restyle live (R1-11).
- System accent: the GNOME portal `accent-color` isn't watched live (only Caelestia's scheme.json and kdeglobals).
- Reader mode, split view, translate, real gamepad rumble (D-002: not planned for now).
- AppImage / tar.gz release (D-001, D-054).
- Shortcut icons: a favicon cache by host (today only open tabs' favicons show).