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:
@@ -178,7 +178,7 @@ public:
|
||||
if (_login_kb) return kb().render(display);
|
||||
AdminSession::State st = S().state();
|
||||
if (st == AdminSession::LOGGING_IN || st == AdminSession::IDLE || st == AdminSession::NEED_PASSWORD) {
|
||||
display.drawCenteredHeader("ADMIN LOGIN");
|
||||
drawScreenHeader(display, "Admin login");
|
||||
if (st != AdminSession::LOGGING_IN) return 500;
|
||||
return waiting(display, "Logging in");
|
||||
}
|
||||
@@ -187,7 +187,7 @@ public:
|
||||
if (st == AdminSession::WAITING) {
|
||||
char title[24];
|
||||
snprintf(title, sizeof(title), "%.23s", S().target().name);
|
||||
display.drawCenteredHeader(title);
|
||||
drawScreenHeader(display, title);
|
||||
return waiting(display, S().fetching() ? "Fetching" : "Waiting for reply");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user