Skip to content

Simplify the code for the battery's time remaining - #1948

Draft
ponjadito23 wants to merge 2 commits into
flightlessmango:masterfrom
ponjadito23:ponjadito23-patch-battery-timeremaining
Draft

Simplify the code for the battery's time remaining#1948
ponjadito23 wants to merge 2 commits into
flightlessmango:masterfrom
ponjadito23:ponjadito23-patch-battery-timeremaining

Conversation

@ponjadito23

Copy link
Copy Markdown
Contributor

Hi, I rewrote the code responsible for displaying the battery's time remaining in a way that is more consistent with the rest of the code.
It removes the 'Time Remaining' label and instead uses the 'REM' suffix, which I find clear enough.

I did this to fix a bug that overlaps text when using compact mode.
It also fixes #1162.

I'm open to suggestions.

batt1 batt2

Removes the 'Time Remaining' label and instead uses "REM" as a suffix. 
Also fixes flightlessmango#1162
@ponjadito23

Copy link
Copy Markdown
Contributor Author

Since this hasn't been merged. Is there something wrong with the changes? I'm still open to suggestions if that's the case.

I'm personally interested in fixing the overlapping remaining time because I want a small and compact MangoHud on the Steam deck.

@flightlessmango

Copy link
Copy Markdown
Owner

I would prefer if this was an option rather than changing the default behavior

@ponjadito23

Copy link
Copy Markdown
Contributor Author

I'll give it another shot when I have free time

@ponjadito23
ponjadito23 marked this pull request as draft July 6, 2026 17:15
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.

battery_time overlaps label after setting 3+ columns

2 participants