-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Battery level pop-up 🔋🪫 #3310
base: community
Are you sure you want to change the base?
Conversation
…tes only when necessary.
…tialBatteryChange method for updates, and improved battery display rendering in session view.
…clarity, improved comments, and ensured consistent formatting in the battery icon rendering logic.
…tes only when necessary.
- Put all battery-related logic into the PowerManager class for better encapsulation and maintainability. - Changed message to a popup to display battery status
It's now working as I would want; as a pop-up. The trigger for this is shift and cross-screen, which I don't think is used elsewhere. Just got to add documentation and do a bit more testing. Happy for anyone else to give it a test drive. |
Could you put it in the menu somewhere as well? We want to make everything findable without using shortcuts |
#include "storage/storage_manager.h" | ||
#include "system/power_manager.h" | ||
#include "util/cfunctions.h" | ||
#include "util/functions.h" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline here please, it's affecting how the includes are sorted and making the change bigger than it should be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bunch of stuff from clang-tidy that needs to be addressed, including naming conventions for new code and narrowing conversions
Add Battery Health Pop-up and Power Management Improvements
Adds a new feature to display battery health pop-up on the OLED display and refactors the power management system for improved functionality and maintainability.
Key Changes:
Battery Health Pop-up:
SHIFT
+CROSS SCREEN
.Power Management Refactor:
PowerManager
class to handle power-related functionalities.PowerManager
.CRITICAL
,WARNING
,HEALTHY
, andFULL
states.Code Cleanup:
deluge.cpp
.Documentation Updates:
CHANGELOG.md
andcommunity_features.md
to reflect the new battery health pop-up feature.Follows this discussion:
#2991