Night map palette instead of inverting it: dark blue-gray ground, roads a step lighter, muted ochre motorways, light-gray labels on dark halos, switched live with setPaintProperty (NightMap); raster overlays dimmed, own track/point colors kept; the UI panels keep the invert filter for now
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-23 16:23:35 +01:00
1 parent 80d0039148
commit 31b27a0852
4 files changed
+204 -11

No files matched your search

+10 -7
View File
@@ -3137,18 +3137,21 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
background: #c0392b;
}
/* Night mode (map.js): the whole page inverted and dimmed, map included,
the already-black topbar and photos inverted back.
ponytail: one filter instead of a dark map style + dark copy of this
stylesheet; colors come out approximate (hue kept, lightness flipped) —
a real dark Park Tiles palette in map_themes.js if that's not enough. */
/* Night mode (map.js): the map gets its own night palette (NightMap in
map_themes.js), so its canvas and markers are inverted back here; the
rest of the UI is still the whole page inverted and dimmed, with the
already-black topbar and photos inverted back.
ponytail: the UI part is one filter, not a dark copy of this stylesheet;
colors come out approximate — CSS color tokens + a dark set later. */
html.night {
filter: invert(1) hue-rotate(180deg) brightness(0.75);
filter: invert(1) hue-rotate(180deg) brightness(0.8);
background: #fff;
}
html.night .topbar,
html.night img {
html.night img,
html.night #map canvas,
html.night .maplibregl-marker {
filter: invert(1) hue-rotate(180deg);
}