mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
refactor(ui-lvgl): review -- shared button bar, confirms, notes, local time
- Dead code gone: anim::fadeHide, radioctl::presetCount, the L2 board's setSdPower / setGrovePower / expanderOK (awRead, gnssReset now private). - buttonBar() / barButton() replace 7 copies of the popup button row. - confirmBody(): one red-button confirm for reboot / power off, reset counters, admin commands, preset and scope delete. - tapConfirmed(): the 11 "tap again" buttons share one mechanism, 3 s everywhere, the label restored when left alone. - noteLabel() for ~30 wrapped notes. - localTm() in NodePrefs.h and one MONTHS table: lvgl, MsgExpand, the L1 clock and lock screen. - The sim keeps UI settings in an in-memory nvs::, so one set of load / save helpers serves both. - Asleep, the loop wakes every 50 ms (the button / touch poll), not 20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -455,7 +455,6 @@ private:
|
||||
lv_obj_t* _ota_btn_lbl = nullptr;
|
||||
uint32_t _map_left_ms = 0; // when the map was left, for dropping live tiles' WiFi
|
||||
bool _admin_from_pick = false; // Admin opened from its Home tile (back returns there)
|
||||
uint32_t _prune_armed_ms = 0;
|
||||
uint16_t _batt_mv = 0; // smoothed, read every 8 s: the status bar and the low-battery shutdown
|
||||
uint32_t _next_batt_ms = 0;
|
||||
lv_obj_t* _prune_lbl = nullptr;
|
||||
@@ -508,7 +507,6 @@ private:
|
||||
uint32_t _next_nearby_ms = 0;
|
||||
bool _pinging = false;
|
||||
uint32_t _ping_started_ms = 0;
|
||||
uint32_t _delete_armed_ms = 0;
|
||||
lv_obj_t* _nearby_list = nullptr;
|
||||
lv_obj_t* _nearby_status = nullptr;
|
||||
lv_obj_t* _nearby_sort_lbl = nullptr;
|
||||
@@ -553,7 +551,6 @@ private:
|
||||
lv_obj_t* _nav_ta = nullptr;
|
||||
lv_obj_t* _nav_kb = nullptr;
|
||||
lv_obj_t* _nav_del_lbl = nullptr;
|
||||
uint32_t _nav_del_armed_ms = 0;
|
||||
int _nav_wp = -1; // waypoint the menu / rename is about
|
||||
lv_obj_t* _nav_rec = nullptr; // "REC 1.2 km LIVE 58m" pill
|
||||
lv_obj_t* _nav_avg_pill = nullptr; // GPS averaging progress (tap: cancel)
|
||||
@@ -563,7 +560,6 @@ private:
|
||||
lv_obj_t* _nav_share_lbl = nullptr;
|
||||
lv_obj_t* _nav_share_btn = nullptr;
|
||||
lv_obj_t* _nav_tb_btn = nullptr;
|
||||
uint32_t _nav_reset_armed_ms = 0;
|
||||
int32_t _nav_spot_lat = 0, _nav_spot_lon = 0; // the spot a long-press picked
|
||||
char _share_text[96] = ""; // waiting for a conversation to be picked (shareToMessage)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user