Skip to content

Conversation

@tituscmd
Copy link
Contributor

@tituscmd tituscmd commented Jan 26, 2025

This PR is a redesign of the BatteryInfo app.

The colors I used are as follows:
Discharging (default): green
Charging: lime
Battery full: blue
Battery low (<10%): red

Here's a pic of it in InfiniEmu, as well as how each state looks like on-device.
emu
discharging
charging
fully_charged
image
(Can't manage to rescale this image on iOS, I'll get to it later)

@github-actions
Copy link

github-actions bot commented Jan 26, 2025

Build size and comparison to main:

Section Size Difference
text 373120B 32B
data 948B 0B
bss 22536B 0B

Run in InfiniEmu

@mark9064 mark9064 added enhancement Enhancement to an existing app/feature UI/UX User interface/User experience labels Jan 27, 2025
Copy link
Contributor

@ljahn ljahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good.
If one prefers the arc to a bar is personal preference.

@tituscmd
Copy link
Contributor Author

tituscmd commented Feb 8, 2025

Would love to see if this could find its way into main 😊

Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! I prefer this design to the original, but it's totally up to taste. If anyone has a strong opinion against this one I'd be interested to hear it :)

Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll queue it for 1.16 but let's leave some time before merging for other feedback

@mark9064 mark9064 added this to the 1.16.0 milestone Feb 9, 2025
@tituscmd
Copy link
Contributor Author

tituscmd commented Feb 9, 2025

LGTM! I'll queue it for 1.16 but let's leave some time before merging for other feedback

Great! Sounds like a good plan to me 😄

@tituscmd
Copy link
Contributor Author

tituscmd commented Feb 9, 2025

grafik
My PC's timezone is off so GitHub is showing me stuff that hasn't happened yet 😳😄

Copy link
Contributor

@NeroBurner NeroBurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good, UI as well

@NeroBurner NeroBurner merged commit 30e5683 into InfiniTimeOrg:main Mar 14, 2025
7 checks passed
JustScott pushed a commit to JustScott/InfiniTime that referenced this pull request Jul 29, 2025
Redesign BatteryInfo App using an Arch widget instead of a bar.

The colors I used are as follows:
- Discharging (default): green
- Charging: lime
- Battery full: blue
- Battery low (<10%): red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing app/feature UI/UX User interface/User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants