Skip to content

top-bar: drop battery progress bar, keep rounded background + percentage#85

Merged
eggfly merged 1 commit into
masterfrom
fix/topbar-remove-battery-bar
Jul 1, 2026
Merged

top-bar: drop battery progress bar, keep rounded background + percentage#85
eggfly merged 1 commit into
masterfrom
fix/topbar-remove-battery-bar

Conversation

@eggfly

@eggfly eggfly commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The top-bar battery panel drew a green (discharge) / yellow (charge) lv_bar fill on top of the rounded battery background image. The fill only covered SoC% of the width, exposing the background image on the remaining part — so the battery showed two clashing colors (green + purple).
  • This makes the bar fully transparent (MAIN + INDICATOR opacity 0) in all states, so the battery level is shown by the original rounded background image + the white % label only. No green/yellow fill bar anymore.
  • Applied to both top-bar implementations: home_base (launcher home) and UIAppTopBar (app pages).
  • The background images themselves are unchanged (kept the original rounded style).

Test plan

  • Cross-compiled APPLaunch (arm64 docker) and deployed to device 192.168.50.150.
  • Verified on device: battery shows the original rounded pill + white "80%" with no green bar / no two-color overlap; time pill unchanged.
  • Verify charging state still looks correct (no stray fill bar).

Made with Cursor

The battery panel layered a green (discharge) / yellow (charge) lv_bar fill on
top of the rounded battery background image, so the fill only covered SoC% of
the width and exposed the background image underneath — showing two clashing
colors. Make the bar fully transparent (MAIN + INDICATOR opa 0) in every state
so the battery level is conveyed by the original rounded background image plus
the white "%" label only. Applied to both top-bar implementations
(home_base and UIAppTopBar).

Co-authored-by: Cursor <cursoragent@cursor.com>
@eggfly eggfly merged commit de401d3 into master Jul 1, 2026
5 checks passed
@eggfly eggfly deleted the fix/topbar-remove-battery-bar branch July 1, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant