mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(ui-lvgl): quick panel from the status bar; L2 fixes from rc1
The quick panel, as a phone's: pulled down from the status bar (or a tap on it). Bluetooth, WiFi, GPS, sound, trail and live share switch at a tap; Advert opens the advert popup (moved here from the Nodes header); Lock locks the screen; a brightness slider. Holding a tile opens its settings. Lock and sun glyphs added to the fonts. Fixes from rc1 testing on the L2: - GPS status icon: none when GPS is off (the module kept its last fix valid, so it stayed green); grey on, green with a fix. ensureGps() turns GPS on before trusting that stale fix. - Screen wake: the panel wakes dark, a frame is drawn, then the backlight fades in -- no white flash. Off fades out first. - Power off / flat battery: the chip wakes every 30 s to look for USB power and starts when plugged in (it slept with no wake source before, until the reset button). Plugged in when switched off: stays off until re-plugged. - Message ages in a conversation refresh every 2 s, as on ui-new; the message popup keeps its age, repeaters heard and delivery up to date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Quick messages and placeholders (the compose bar's "+", Settings > Messages
|
||||
// & contacts > Quick messages), the advert button in Nodes' header, Settings > Bluetooth, and
|
||||
// & contacts > Quick messages), the advert popup (the quick panel's Advert), Settings > Bluetooth, and
|
||||
// Messages' "Read all". The text side is ui-core/MessageText.h.
|
||||
// Included by UITask.cpp (single translation unit).
|
||||
|
||||
@@ -62,7 +62,6 @@ static void onBtSwitch(lv_event_t* e) {
|
||||
|
||||
} // namespace qview
|
||||
|
||||
static void onAdvertRow(lv_event_t* e) { (void)e; s_ui->advertPopup(); }
|
||||
static void onOpenQuickMsgs(lv_event_t* e) { (void)e; s_ui->showQuickMsgs(); }
|
||||
|
||||
// ── The compose bar's "+" ─────────────────────────────────────────────────────
|
||||
@@ -189,7 +188,7 @@ void UITask::quickEditDone(bool ok) {
|
||||
}
|
||||
}
|
||||
|
||||
// ── Nearby > advert ───────────────────────────────────────────────────────────
|
||||
// ── Advert (the quick panel) ─────────────────────────────────────────────────
|
||||
// Shows you (and your position, if shared) to other nodes: now, or on a timer
|
||||
// (the schema's PG_ADVERT page, ui-new's Tools > Auto-Advert).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user