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
|
|
@ -4538,12 +4538,15 @@
|
|||
"settings.always_2d":"Sempre 2D",
|
||||
"settings.an_early_heads_up_below_60":"Un avviso in anticipo sotto il 60% di soddisfazione, molto prima che siano furiosi.",
|
||||
"settings.auto_draws_the_map_with_your":"Auto disegna la mappa con la tua scheda grafica quando il browser lo consente, così anche le reti grandi restano fluide. Sempre 2D funziona ovunque ma è più lento sulle mappe grandi.",
|
||||
"settings.auto_follows_your_device_s_light":"Auto segue l’impostazione chiara o scura del tuo dispositivo. Lo scuro riposa gli occhi di notte e fa risparmiare batteria sugli schermi OLED.",
|
||||
"settings.auto_follows_your_device_s_reduce":"Auto segue l’impostazione “riduci movimento” del tuo dispositivo. Off congela la mappa: niente pacchetti in movimento, pulsazioni o testo fluttuante.",
|
||||
"settings.customers_and_alerts":"Clienti e avvisi",
|
||||
"settings.dark":"Scuro",
|
||||
"settings.diagnostic_info":"Info di diagnostica",
|
||||
"settings.display_and_sound":"Schermo e audio",
|
||||
"settings.for_bug_reports_shows_your_screen":"Per segnalare bug: mostra in un angolo le dimensioni dello schermo, come viene disegnata la mappa (scheda grafica o 2D, e perché) e a che velocità.",
|
||||
"settings.let_an_ai_agent_drive_this_game":"Lascia giocare un agente IA",
|
||||
"settings.light":"Chiaro",
|
||||
"settings.map_drawing":"Disegno della mappa",
|
||||
"settings.n_min":"{n} min",
|
||||
"settings.n_sec":"{n} s",
|
||||
|
|
@ -4557,6 +4560,7 @@
|
|||
"settings.the_agent_moves_it":"Lo muove l'agente",
|
||||
"settings.the_clock_while_an_agent_plays":"L'orologio mentre gioca un agente",
|
||||
"settings.the_game_stops_so_you_can":"Il gioco si ferma così puoi sistemare il servizio prima che disdicano. Utilissimo ad alta velocità.",
|
||||
"settings.theme":"Tema",
|
||||
"settings.this_browser_cannot_so_the_map":"Questo browser non può, quindi la mappa è disegnata in 2D.",
|
||||
"settings.warn_when_a_customer_gets_unhappy":"Avvisa quando un cliente diventa scontento",
|
||||
"settings.while_agent_mode_is_on_the":"Finché la modalità agente è attiva, l'orologio non è tuo. Con un ritmo va da solo e non si può fermare a mano, nemmeno con una finestra aperta (comprese le tue), e aspetta finché non è collegato nessun agente. Oppure lo muove l'agente, e non succede nulla finché non chiede dei giorni. La pagina si collega al relay locale per agenti (npm run dev ne avvia uno), così strumenti come il server MCP possono giocare questa partita mentre guardi.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue