M1.10: light theme, live theme switching, editor tokens
- theme::LIGHT next to DARK with the 10 new tokens (editor selection, active line, cursor, gutter, match, font size, tab active/modified, notice); light fg-muted, accent and error darkened for WCAG AA - theme.list, theme.systemPreference, themeChanged event when the resolved theme changes (settings.set/reset appearance.theme, or the OS preference in system mode) - desktop init script and window background from the stored setting; system mode uses a prefers-color-scheme media query for the first frame - ui/src/theme.ts applies tokens to :root and color-scheme live; editor, tabs and notice drop their var() fallbacks - Vitest WCAG AA contrast check against a Rust-maintained snapshot, DOM tests, headless control-channel test - docs: architecture Themes, parity rows, ui-parity, gaps, roadmaps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1ab448de4d
commit
cde6e119c6
29 changed files with 1192 additions and 72 deletions
|
|
@ -72,10 +72,10 @@ fn get_set_reset_and_events() {
|
|||
.unwrap();
|
||||
assert_eq!(out.value, json!({"value": "lutra-light"}));
|
||||
assert_eq!(
|
||||
out.events,
|
||||
vec![Event::SettingsChanged {
|
||||
out.events.first(),
|
||||
Some(&Event::SettingsChanged {
|
||||
keys: vec!["appearance.theme".into()]
|
||||
}]
|
||||
})
|
||||
);
|
||||
let same = e
|
||||
.execute(
|
||||
|
|
@ -94,7 +94,7 @@ fn get_set_reset_and_events() {
|
|||
.execute("settings.reset", json!({"key": "appearance.theme"}))
|
||||
.unwrap();
|
||||
assert_eq!(reset.value, json!({"value": "system"}));
|
||||
assert_eq!(reset.events.len(), 1);
|
||||
assert_eq!(reset.events.len(), 2);
|
||||
let again = e
|
||||
.execute("settings.reset", json!({"key": "appearance.theme"}))
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue