mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 18:26:11 +00:00
feat(ui): collapsible Tools, shared AccordionList helper
The flat 10-item Tools list grew crowded, so tools are now grouped into collapsible sections (Location / Comms / System) that fold in place — the same model as Settings. Extracted that fold-in-place behaviour into a reusable AccordionList helper (owns the collapse mask, flattened visible-row list, selection and scroll; host supplies section sizes + two row painters) and migrated SettingsScreen onto it, dropping its hand-rolled buildVis/visIndexOf/sectionIndex and five state fields. AccordionList joins drawList/DigitEditor/NavView as a shared UI element used by two screens. Added four mini-icons (bot, note, chart, gear) so every Tools row and section header carries a glyph. Builds verified: WioTrackerL1 + e-ink solo (Flash 61.0%). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e4273a9313
commit
b8760f7e41
@@ -1373,6 +1373,7 @@ void UITask::gotoSettingsScreen() {
|
||||
}
|
||||
|
||||
void UITask::gotoToolsScreen() {
|
||||
((ToolsScreen*)tools_screen)->enter();
|
||||
setCurrScreen(tools_screen);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user