Files
Max Gramser 378d0b3e61 Build each screen in one language: the screen texts from the translations, European letters in the fonts, and Language & region in the app
The firmware takes its texts from screen_manager/translations/<code>.json at build time (components/smart_display:
one table in main.cpp, keys in screen_text_keys.h), and the fonts carry every letter European languages write with.
The app keeps Settings -> Language & region (language, clock, numbers) for every screen, writes LANGUAGE into the
screens' YAML and sends the clock and the number format in the layout message; the per-screen 24-hour clock goes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 14:24:19 +02:00

16 lines
682 B
C++

#include "screen_text_en.h"
#define THEME_TEST
#include "components/smart_display/tile_palette.h"
#include <cassert>
int main() {
assert(tile_palette::color("auto")==0);
assert(tile_palette::color("")==0);
assert(tile_palette::color("unknown-future-choice")==0);
assert(tile_palette::color("red")==0xFADADD);
assert(tile_palette::color("green")!=tile_palette::color("red"));
// "None" is not a colour: the card is hidden, and old firmware falls back to automatic.
assert(tile_palette::color("none")==0);
assert(tile_palette::transparent("none"));
assert(!tile_palette::transparent("auto") && !tile_palette::transparent("red") && !tile_palette::transparent(""));
}