seriesoftubes/site/i18n
jvanvik 2cd6b71198 Dark mode: Light, Dark or Auto under Settings › Theme (#80)
A device preference (localStorage sot-theme, never in the save), applied
by a small script in <head> before the first paint, so there is no flash;
Auto follows prefers-color-scheme live, and a choice reaches other tabs
and the NOC window. Panels, HUD, drawers, toasts, modals, the phone tab
bar, charts, puzzles, the architect and Pie Control take their colours
from custom properties with night values (AA text contrast); light tints
keep their old colour as the fallback, so the light look is unchanged.

Both map renderers read a light and a dark palette (96-map/15-palette.js):
sea, land, clouds, coastlines, labels and the tube outline. A theme
switch repaints the cached layers once (the WebGL land buffers are
rebuilt once); nothing changes per frame. The multiplayer leaderboard's
own row and the menu rank badge follow the theme too.
2026-11-07 01:01:50 +01:00
..
de.js Dark mode: Light, Dark or Auto under Settings › Theme (#80) 2026-11-07 01:01:50 +01:00
es.js Dark mode: Light, Dark or Auto under Settings › Theme (#80) 2026-11-07 01:01:50 +01:00
fr.js Dark mode: Light, Dark or Auto under Settings › Theme (#80) 2026-11-07 01:01:50 +01:00
it.js Dark mode: Light, Dark or Auto under Settings › Theme (#80) 2026-11-07 01:01:50 +01:00
pt.js Dark mode: Light, Dark or Auto under Settings › Theme (#80) 2026-11-07 01:01:50 +01:00