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
@@ -10,7 +10,7 @@
namespace chanview {
enum : uint8_t { A_FAV, A_EDIT, A_DELETE, A_READ };
enum : uint8_t { A_FAV, A_EDIT, A_DELETE, A_READ, A_PIN };
enum : uint8_t { T_PUBLIC, T_HASHTAG, T_PRIVATE };
enum : uint8_t { C_NOTIF, C_SCOPE };
@@ -120,6 +120,7 @@ void UITask::channelMenu(int idx) {
struct { const char* text; uint8_t act; } btns[] = {
{ UI_SYMBOL_STAR " Fav", A_FAV },
{ LV_SYMBOL_OK " Read", A_READ },
{ UI_SYMBOL_PIN, A_PIN },
{ LV_SYMBOL_EDIT " Edit", A_EDIT },
{ LV_SYMBOL_TRASH, A_DELETE },
};
@@ -173,6 +174,9 @@ void UITask::channelAction(uint8_t act) {
navClosePopup();
showChannelEdit(idx);
break;
case A_PIN:
pinPopup(true, (uint8_t)idx, nullptr); // DeviceScreen.h
break;
case A_DELETE:
if (!s_del_armed_ms || millis() - s_del_armed_ms > 3000) { // second tap within 3 s confirms
s_del_armed_ms = millis() | 1;