From aab6af1601fa4cdb9b351987220f32de062d4b2c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 28 Oct 2026 08:42:30 +0100 Subject: web: follow system light/dark preference All colors moved into CSS custom properties on :root (dark default) with a prefers-color-scheme: light override block. The two canvas- drawn surfaces follow too: the viewport now clears transparent so the CSS canvas background shows through, and the compass strip reads its colors from the same variables via a new bridge::css_var helper. theme-color metas (dark + light variants) tint mobile browser chrome to match. --- crates/wipfel/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/wipfel/Cargo.toml') diff --git a/crates/wipfel/Cargo.toml b/crates/wipfel/Cargo.toml index fad31ce..47faa60 100644 --- a/crates/wipfel/Cargo.toml +++ b/crates/wipfel/Cargo.toml @@ -19,6 +19,7 @@ features = [ "Blob", "CanvasRenderingContext2d", "DataTransfer", + "CssStyleDeclaration", "Document", "DomRect", "DragEvent", -- cgit v1.2.3