|
TB2026-YDS Firmware
|
Permanent top bar shared by every screen: Bluetooth state, active output, battery percent. More...

Macros | |
| #define | STATUS_BAR_H 16 |
| Height in pixels of the reserved top bar. Screens render below this. | |
Functions | |
| void | status_bar_draw (void) |
| Paint the top status bar over the framebuffer. | |
Permanent top bar shared by every screen: Bluetooth state, active output, battery percent.
| #define STATUS_BAR_H 16 |
Height in pixels of the reserved top bar. Screens render below this.
| void status_bar_draw | ( | void | ) |
Paint the top status bar over the framebuffer.
Called by the navigator right after the active screen renders (and once for the initial paint), so the bar appears on every screen regardless of which one is on top. It owns the top STATUS_BAR_H rows: it clears that strip to black, then draws the Bluetooth antenna (left), the active output (centre) and the battery percentage (right). Screens are expected to keep their content below STATUS_BAR_H so nothing is hidden. Reads the cached snapshot from the power service; shows "--%" until the fuel gauge has produced its first reading.