summaryrefslogtreecommitdiff
path: root/crates/wipfel/www/index.html
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 08:42:30 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 08:42:30 +0100
commitaab6af1601fa4cdb9b351987220f32de062d4b2c (patch)
treee5d2b4b6af7e5d8fd8d19717786ed0f29b619b0f /crates/wipfel/www/index.html
parentd57f022243850b532239ae08dd75717f55415fbf (diff)
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.
Diffstat (limited to 'crates/wipfel/www/index.html')
-rw-r--r--crates/wipfel/www/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/wipfel/www/index.html b/crates/wipfel/www/index.html
index 98f81e8..67d0378 100644
--- a/crates/wipfel/www/index.html
+++ b/crates/wipfel/www/index.html
@@ -3,6 +3,8 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+ <meta name="theme-color" content="#101014" media="(prefers-color-scheme: dark)" />
+ <meta name="theme-color" content="#e9eaf0" media="(prefers-color-scheme: light)" />
<title>wipfel — web based gipfel photogrammetry</title>
<link rel="stylesheet" href="style.css" />
</head>