feat(setup): Variant B full-bleed hero on 13.3 panel
Adopts the hero treatment Matt picked from the /tmp/setup-mockups gallery: a 1200×460 harbour photo banner with the WeVisto wordmark at 200pt overlaid centred, then a 70-px accent band carrying the section title. Replaces the prior 130-tall single band where the 110×110 logo card couldn't render the Camogli photo recognisably under the 6-colour palette. Implementation notes: - compose_hero_banner() crops from the hi-res IMG_2524.jpg (so we don't upsample the 900-square version), composites the SVG black-fade gradient, then Floyd-Steinberg dithers to the Spectra-6 palette so the photo reads as continuous tone instead of nearest-neighbour colour fields. Wordmark composited after the dither to keep text edges crisp. - Compact orientation diagrams + smaller manual QR (box_size=5) so the AP screen's left column still fits the 4 steps + diagrams + help QR inside the 1070-px body left below the taller hero. - Setup QR cell shrunk 16 → 14 (656 → 574 px) so the setup screen fits the QR + MAC chip + progress bar below the hero. - Redundant two-line "Scan the QR to link this frame / to your wevisto.com account." dropped from setup screen — heading + label above the QR + MAC chip below it cover the same ground without crowding the post-hero body. - epd_driver.cpp QR overlay coords updated to match: AP 230→590, setup (272,490,16) → (313,750,14). compose_logo() (square card) kept for any future use; not currently called by gen_ap/gen_setup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -428,13 +428,13 @@ static void draw_from_lfs(const char* path, uint8_t fallback_color,
|
||||
// firmware paints the live QR into it. Mismatch = the QR draws over
|
||||
// decorative borders or the QR placeholder shows through.
|
||||
void epd_draw_ap_screen(QRCode* qr) {
|
||||
draw_from_lfs("/ap_bg.bin", COLOR_YELLOW, qr, 642, 230, 14);
|
||||
draw_from_lfs("/ap_bg.bin", COLOR_YELLOW, qr, 642, 590, 14);
|
||||
}
|
||||
|
||||
void epd_draw_ap_screen_retry(QRCode* qr) {
|
||||
draw_from_lfs("/ap_bg_retry.bin", COLOR_RED, qr, 642, 230, 14);
|
||||
draw_from_lfs("/ap_bg_retry.bin", COLOR_RED, qr, 642, 590, 14);
|
||||
}
|
||||
|
||||
void epd_draw_setup_screen(QRCode* qr) {
|
||||
draw_from_lfs("/setup_bg.bin", COLOR_GREEN, qr, 272, 490, 16);
|
||||
draw_from_lfs("/setup_bg.bin", COLOR_GREEN, qr, 313, 750, 14);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user