mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(l1): one title bar, page dots, disclosure marks and push buttons
drawScreenHeader replaces drawCenteredHeader on every ui-new screen: the title in normal case, page dots instead of "TRAIL 1/3", the menu hint, no icon (the screen was just picked by one). Accordions in Settings and Tools show a disclosure triangle instead of +/-, Tools sections drop their icons. Form "[Save]" rows and "+ Send" share drawButton; form fields use valueRow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -591,7 +591,7 @@ class SettingsScreen : public UIScreen {
|
||||
|
||||
int renderScopeMgmt(DisplayDriver& display) {
|
||||
display.setColor(DisplayDriver::LIGHT);
|
||||
display.drawCenteredHeader("SCOPE", true, _scope_action_menu.active);
|
||||
drawScreenHeader(display, "Scope", -1, 0, true, _scope_action_menu.active);
|
||||
const ScopeList& sl = the_mesh.scopeList();
|
||||
int total = sl.totalCount() + 1; // +1 synthetic "+ Add scope" row
|
||||
drawList(display, total, _scope_mgmt_sel, _scope_mgmt_scroll, [&](int idx, int y, bool sel, int reserve) {
|
||||
@@ -651,18 +651,17 @@ public:
|
||||
|
||||
if (_scope_mgmt_active) return renderScopeMgmt(display);
|
||||
|
||||
display.drawCenteredHeader("SETTINGS");
|
||||
drawScreenHeader(display, "Settings");
|
||||
|
||||
int mq_delay = 0;
|
||||
_acc.render(display,
|
||||
// Section header: "[+/-] Name"
|
||||
// Section header: disclosure mark + name
|
||||
[&](int sec, int y, bool sel, int reserve, bool collapsed) {
|
||||
_reserve = reserve;
|
||||
display.setColor(DisplayDriver::LIGHT);
|
||||
drawRowSelection(display, y, sel, reserve);
|
||||
display.setCursor(2, y);
|
||||
display.print(collapsed ? "+" : "-");
|
||||
display.print(" ");
|
||||
drawDisclosure(display, 2, y, !collapsed);
|
||||
display.setCursor(2 + 2 * display.getCharWidth(), y);
|
||||
display.print(sectionName(_sec_header[sec]));
|
||||
},
|
||||
// Item row
|
||||
|
||||
Reference in New Issue
Block a user