feat(ui-core,ui-lvgl): favourites pinning in the Core, L2 node name, reboot, lock screen, favourites dial, 12-hour clock

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-09-25 20:51:00 +02:00
co-authored by Claude Opus 5.5
parent 6d82da877e
commit 8663d50412
12 changed files with 528 additions and 30 deletions
@@ -639,9 +639,7 @@ class MessagesScreen : public UIScreen {
void pinContactToSlot(const ContactInfo& ci, int slot) {
if (slot < 0 || slot >= NodePrefs::FAVOURITES_COUNT) return;
int existing = _task->findFavouriteSlot(ci.id.pub_key);
if (existing >= 0 && existing != slot) _task->clearFavouriteSlot(existing);
_task->setFavouriteSlot(slot, ci.id.pub_key);
favslots::pinContact(_task->getNodePrefs(), slot, ci.id.pub_key);
the_mesh.savePrefs();
char alert[24];
snprintf(alert, sizeof(alert), "Pinned to slot %d", slot + 1);
@@ -669,9 +667,7 @@ class MessagesScreen : public UIScreen {
void pinChannelToSlot(uint8_t ch_idx, int slot) {
if (slot < 0 || slot >= NodePrefs::FAVOURITES_COUNT) return;
int existing = _task->findFavouriteChannelSlot(ch_idx);
if (existing >= 0 && existing != slot) _task->clearFavouriteSlot(existing);
_task->setFavouriteChannelSlot(slot, ch_idx);
favslots::pinChannel(_task->getNodePrefs(), slot, ch_idx);
the_mesh.savePrefs();
char alert[24];
snprintf(alert, sizeof(alert), "Pinned to slot %d", slot + 1);