mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-03 03:11:57 +00:00
perf(l2): cheaper frames -- less overdraw and blending
Measured on the L2 (steady full frames): Settings page 37.7 -> 31.4 ms, Display 41.5 -> 37.9, Contacts 34.6 -> 32.9, Home 37.3 -> 32.4. - styleSurface() leaves boxes in the page colour unpainted; styleOpaque() for the screen and the status bar, which things slide under. - group() cards clip their corners only while a row is held (rowPressable(), shared by the tappable rows). - rowSlider(): the track an opaque tint (theme::mix(), also behind ACCENT_DIM) instead of 20 % accent blended every frame. - Map buttons, pills, scale, nav bar and the Home minimap labels opaque. - Screens drift in without the fading cover: its full-screen blend was in every entrance frame (page 39 -> 29 ms). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -600,7 +600,7 @@ void UITask::buildHomeMap(lv_obj_t* box) {
|
||||
s_fitted = false;
|
||||
s_hint = label(s_area, "", THEME_FONT_SMALL, theme::TEXT);
|
||||
lv_obj_set_style_bg_color(s_hint, lv_color_hex(theme::BG), 0);
|
||||
lv_obj_set_style_bg_opa(s_hint, LV_OPA_80, 0);
|
||||
lv_obj_set_style_bg_opa(s_hint, LV_OPA_COVER, 0); // opaque over the tiles, as the map's pills
|
||||
lv_obj_set_style_radius(s_hint, theme::RADIUS_SM, 0);
|
||||
lv_obj_set_style_pad_hor(s_hint, 8, 0);
|
||||
lv_obj_set_style_pad_ver(s_hint, 4, 0);
|
||||
@@ -609,7 +609,7 @@ void UITask::buildHomeMap(lv_obj_t* box) {
|
||||
lv_obj_add_flag(s_hint, LV_OBJ_FLAG_HIDDEN);
|
||||
s_caption = label(s_area, "", THEME_FONT_SMALL, theme::TEXT); // who's on it
|
||||
lv_obj_set_style_bg_color(s_caption, lv_color_hex(theme::BG), 0);
|
||||
lv_obj_set_style_bg_opa(s_caption, LV_OPA_80, 0);
|
||||
lv_obj_set_style_bg_opa(s_caption, LV_OPA_COVER, 0);
|
||||
lv_obj_set_style_radius(s_caption, theme::RADIUS_SM, 0);
|
||||
lv_obj_set_style_pad_hor(s_caption, 6, 0);
|
||||
lv_obj_set_style_pad_ver(s_caption, 2, 0);
|
||||
|
||||
Reference in New Issue
Block a user