437b8c55b4
Firmware 0.2.16: the analog clock uses index strokes with 12/3/6/9 numerals on large cards and shows a calendar block (weekday, big day, short month) beside the dial on single tiles; wide cards keep the digital time and date. New palette key 'none' hides only the card fill and border: geometry, padding and the pressed flash stay identical. Skeleton frames and the render self-test honour the transparency. App 0.2.15: 'Geen' in the background palette with a dashed mockup tile, min_firmware 0.2.16 for such layouts, demo layout with the bare calendar clock (--wide for the double-width clock). README and AGENTS note that every push is a release and bumps the add-on version. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
14 lines
628 B
C++
14 lines
628 B
C++
#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")!=0);
|
|
assert(tile_palette::color("green")!=tile_palette::color("red"));
|
|
// "Geen" 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(""));
|
|
}
|