mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(l2): light theme
Settings > Display > Theme: Dark / Light (NVS mc_ui/light). The colour tokens are set once before anything is built, so a change restarts the device. Text on an accent fill is the new ON_ACCENT (it was BG, white in the light theme); each accent has a deeper hand-picked light variant that reads on white and takes white text. The map's empty-tile fill and grid and the areas' outlines follow the theme too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,7 @@ static void drawLayer(lv_event_t* e) {
|
||||
lv_draw_rect_dsc_init(&d);
|
||||
d.bg_opa = LV_OPA_TRANSP;
|
||||
d.border_width = i == s_show ? 2 : 1;
|
||||
d.border_color = lv_color_hex(i == s_show ? theme::ACCENT : 0x9A958C);
|
||||
d.border_color = lv_color_hex(i == s_show ? theme::ACCENT : theme::TEXT_MUTED);
|
||||
d.border_opa = LV_OPA_COVER;
|
||||
lv_draw_rect(layer, &d, &r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user