[Apple Battery Widget] Create new app - #4306
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new applebatt widget app that displays the current battery percentage in an iOS-style pill indicator.
Changes:
- Introduces the
applebattwidget implementation with charging/low-battery color states. - Adds app metadata (id/name/version/storage mapping) and initial ChangeLog entry.
Reviewed changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| apps/applebatt/widget.js | Implements the widget drawing logic and periodic redraw scheduling. |
| apps/applebatt/metadata.json | Registers the widget with the app loader and defines storage targets/screenshots. |
| apps/applebatt/ChangeLog | Adds initial version entry for the new widget. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
This looks good to go now! |
|
If you're making a widget please start the name with wid to make it easy to find! ( @bobrippling I guess we should add this to the PR merge check list? https://github.com/espruino/BangleApps/wiki/App-Contribution ) |
|
To clarify, the appid should start with wid. Not the user facing name. |
|
Thanks, just pushed. We could also add it to |
I think that's a good idea! |
Good call, how's this? |
Just made a PR for it, #4309 |
|
Now that #4309 is merged in, shall we merge this in as well? |
|
Yes, thanks! |
Creates a new app based on the style of the iOS battery icon.