mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
PowerStatus: Rename 'battery low' sound, add 'critical' sound
* Renaming "Low battery" to "Battery low" so it's right next to "Battery charged" in the Sounds prefs event list. * Adding "Battery critical" sound. I think it makes sense to have a different - more urgent - sound when there's only 15% left, compared to "Low" (30%). Change-Id: I46b5975e5797a9c3a84d4619e697be162e79b1cf Reviewed-on: https://review.haiku-os.org/c/haiku/+/6900 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
36830615dd
commit
5491ece2a4
@ -123,7 +123,8 @@ PowerStatusView::_Init()
|
||||
|
||||
fHasNotifiedLowBattery = false;
|
||||
|
||||
add_system_beep_event("Low battery");
|
||||
add_system_beep_event("Battery critical");
|
||||
add_system_beep_event("Battery low");
|
||||
add_system_beep_event("Battery charged");
|
||||
}
|
||||
|
||||
@ -609,13 +610,13 @@ PowerStatusView::_NotifyLowBattery()
|
||||
BNotification notification(
|
||||
fHasBattery ? B_INFORMATION_NOTIFICATION : B_ERROR_NOTIFICATION);
|
||||
|
||||
system_beep("Low battery");
|
||||
|
||||
if (fHasBattery) {
|
||||
system_beep("Battery low");
|
||||
notification.SetTitle(B_TRANSLATE("Battery low"));
|
||||
notification.SetContent(B_TRANSLATE(
|
||||
"The battery level is getting low, please plug in the device."));
|
||||
} else {
|
||||
system_beep("Battery critical");
|
||||
notification.SetTitle(B_TRANSLATE("Battery critical"));
|
||||
notification.SetContent(B_TRANSLATE(
|
||||
"The battery level is critical, please plug in the device "
|
||||
|
Loading…
x
Reference in New Issue
Block a user