Permalink
Browse files

updates and additions

  • Loading branch information...
1 parent fa30c45 commit e666f1bc99d6a796e9a653e55ff9973cda915bff www-data committed Feb 27, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 top-bar/top-bar-battery-percent-and-horizontal-icon.patch
@@ -1,5 +1,5 @@
diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
-index 48c4681..b10901c 100644
+index 48c4681..b5949ea 100644
--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
@@ -2070,7 +2070,9 @@ handlePowerNotifications: function(payload) {
@@ -9,7 +9,7 @@ index 48c4681..b10901c 100644
- Mojo.Dom.get('power').className = 'battery-' + i;
+ var powerEl = Mojo.Dom.get('power');
+ powerEl.className = 'battery-' + i;
-+ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -10px; bottom: -3px; text-align: right; font-size: 10px">' + payload.percent_ui + '%</div>'
++ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -10px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
//Show Banner Message if the Battery level is below 20%
var batteryalert = $L("#{percent_ui}% battery remaining").interpolate(payload);
@@ -26,7 +26,7 @@ index 48c4681..b10901c 100644
+ powerEl.innerHTML = '';
+ else {
+ powerEl.className = 'battery-charging-' + i;
-+ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + payload.percent_ui + '%</div>'
++ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
+ }
}
@@ -44,7 +44,7 @@ index 48c4681..b10901c 100644
+ powerEl.innerHTML = '';
+ else {
+ powerEl.className = 'battery-charging-' + this.lastBatteryLevel;
-+ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + payload.percent_ui + '%</div>'
++ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
+ }
var stageController = Mojo.Controller.getAppController().getStageController("LowBatteryAlert");
@@ -56,7 +56,7 @@ index 48c4681..b10901c 100644
- Mojo.Dom.get('power').className = 'battery-' + this.lastBatteryLevel;
+ var powerEl = Mojo.Dom.get('power')
+ powerEl.className = 'battery-' + this.lastBatteryLevel;
-+ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -10px; bottom: -3px; text-align: right; font-size: 10px">' + payload.percent_ui + '%</div>'
++ powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -10px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
Mojo.Controller.getAppController().removeBanner('chargingAlert');
if (this.batteryLevel < this.minBatThresholdForUpdate) {
Mojo.Log.info("SystemUI - OTA - Closing All Update Alerts due to battery level dropped below threshold level and charger disconnected.");

0 comments on commit e666f1b

Please sign in to comment.