fix(l2): title bar fits its title - the battery level, then button words, give way

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
MarekZegare4
2026-10-19 12:58:04 +02:00
co-authored by Claude Sonnet 5.5
parent e2c50062b6
commit 1683be63ca
3 changed files with 75 additions and 12 deletions
@@ -387,6 +387,7 @@ private:
void buildStatusBar();
void refreshStatusBar();
void fitHeader();
lv_obj_t* newScreen(const char* title, bool with_back);
void showSplash(); // Splash.h
// The screen being shown: newScreen()'s, already while it slides in (popups
@@ -621,6 +622,7 @@ private:
lv_obj_t* _home_unread = nullptr;
lv_obj_t* _header = nullptr; // current screen's title bar (nullptr on Home)
lv_obj_t* _hdr_clock = nullptr; // its time and battery, at the right end
lv_obj_t* _hdr_title = nullptr; // its title, which the battery's level gives way to
lv_obj_t* _hdr_time = nullptr;
lv_obj_t* _hdr_batt = nullptr;
lv_obj_t* _body = nullptr;