PowerStatus: Implement battery low/critical notifications

Operating Systems / Haiku - Michael Lotz [mlotz.ch] - 23 October 2014 13:07 UTC

It shows a notification once the "low percentage" is reached (currently at 15 percent) and once when the battery is about to die. This logic should probably be revised to be based on remaining time instead. The notification icons are simple variations of the PowerStatus icon.

1180b66 PowerStatus: Implement battery low/critical notifications.
data/artwork/icons/Battery_Critical | Bin 0 -> 13221 bytes
data/artwork/icons/Battery_Low | Bin 0 -> 13217 bytes
src/apps/powerstatus/Jamfile | 2 +-
src/apps/powerstatus/PowerStatus.rdef | 47 +++++++++++++++++++++++++++
src/apps/powerstatus/PowerStatusView.cpp | 51 ++++++++++++++++++++++++++++--
5 files changed, 96 insertions(+), 4 deletions(-)

Upstream: cgit.haiku-os.org


  • Share