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.
This commit is contained in:
parent
95aa9b6532
commit
2cd6b71198
49 changed files with 645 additions and 155 deletions
|
|
@ -4539,12 +4539,15 @@
|
|||
"settings.always_2d":"Always 2D",
|
||||
"settings.an_early_heads_up_below_60":"An early heads-up below 60% happiness, long before they are furious.",
|
||||
"settings.auto_draws_the_map_with_your":"Auto draws the map with your graphics card when the browser allows it, which keeps big networks smooth. Always 2D works everywhere but is slower on big maps.",
|
||||
"settings.auto_follows_your_device_s_light":"Auto follows your device’s light or dark setting. Dark is easier on the eyes at night and saves battery on OLED screens.",
|
||||
"settings.auto_follows_your_device_s_reduce":"Auto follows your device’s reduce-motion setting. Off freezes the map: no moving packets, pulses or floating text.",
|
||||
"settings.customers_and_alerts":"Customers and alerts",
|
||||
"settings.dark":"Dark",
|
||||
"settings.diagnostic_info":"Diagnostic info",
|
||||
"settings.display_and_sound":"Display and sound",
|
||||
"settings.for_bug_reports_shows_your_screen":"For bug reports: shows in a corner your screen's size, how the map is drawn (graphics card or 2D, and why) and how fast.",
|
||||
"settings.let_an_ai_agent_drive_this_game":"Let an AI agent drive this game",
|
||||
"settings.light":"Light",
|
||||
"settings.map_drawing":"Map drawing",
|
||||
"settings.n_min":"{n} min",
|
||||
"settings.n_sec":"{n} s",
|
||||
|
|
@ -4558,6 +4561,7 @@
|
|||
"settings.the_agent_moves_it":"The agent moves it",
|
||||
"settings.the_clock_while_an_agent_plays":"The clock while an agent plays",
|
||||
"settings.the_game_stops_so_you_can":"The game stops so you can fix their service before they cancel. Most useful at high speed.",
|
||||
"settings.theme":"Theme",
|
||||
"settings.this_browser_cannot_so_the_map":"This browser cannot, so the map is drawn in 2D.",
|
||||
"settings.warn_when_a_customer_gets_unhappy":"Warn when a customer gets unhappy",
|
||||
"settings.while_agent_mode_is_on_the":"While agent mode is on, the clock is not yours. With a pace it runs by itself and cannot be paused by hand, not even by an open window (yours included), and it waits while no agent is connected. Or the agent moves it, and nothing happens until it asks for days. The page connects to the local agent relay (npm run dev hosts one), so tools like the MCP server can drive this game while you watch.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue