feat(ui): tab bars glide on a tab turn, the view below slides as Home's pages do (OLED)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-12 23:02:12 +02:00
co-authored by Claude Opus 5.5
parent 4c1ebebcde
commit beb99878b1
6 changed files with 90 additions and 8 deletions
+2 -2
View File
@@ -177,8 +177,8 @@ public:
_task->leaveTool();
return true;
}
if (keyIsPrev(c)) { _tab = (_tab + botcfg::TAB_COUNT - 1) % botcfg::TAB_COUNT; _sel = _scroll = 0; return true; }
if (keyIsNext(c)) { _tab = (_tab + 1) % botcfg::TAB_COUNT; _sel = _scroll = 0; return true; }
if (keyIsPrev(c)) { tabbar::turn(_task->getDisplay(), botcfg::TAB_LABELS, _tab, -1); _tab = (_tab + botcfg::TAB_COUNT - 1) % botcfg::TAB_COUNT; _sel = _scroll = 0; return true; }
if (keyIsNext(c)) { tabbar::turn(_task->getDisplay(), botcfg::TAB_LABELS, _tab, +1); _tab = (_tab + 1) % botcfg::TAB_COUNT; _sel = _scroll = 0; return true; }
int n = botcfg::rowCount(_tab);
// drawList() reclamps _scroll from _sel every render.