Permalink
Browse files

updates and additions

  • Loading branch information...
www-data
www-data committed Mar 6, 2012
1 parent e666f1b commit 8423052451684314cf93fa613f36677726b4d68c
Showing with 9 additions and 7 deletions.
  1. +9 −7 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..b5949ea 100644
+index 48c4681..45c55dc 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) {
@@ -17,14 +17,15 @@ index 48c4681..b5949ea 100644
}
else {
Mojo.Log.info("SystemUI- Is Charging "+ this.isCharging );
-+ var powerEl = Mojo.Dom.get('power');
- if(payload.percent_ui == 100)
+- if(payload.percent_ui == 100)
- Mojo.Dom.get('power').className = 'battery-charged';
- else
- Mojo.Dom.get('power').className = 'battery-charging-' + i;
++ var powerEl = Mojo.Dom.get('power');
++ if(payload.percent_ui == 100) {
+ powerEl.className = 'battery-charged';
+ powerEl.innerHTML = '';
-+ else {
++ } 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">' + this.batteryLevel + '%</div>'
+ }
@@ -35,14 +36,15 @@ index 48c4681..b5949ea 100644
if (this.isCharging) {
Mojo.Log.info("SystemUI- Charger Notification "+ this.isCharging + " Last battery level "+ this.lastBatteryLevel);
-+ var powerEl = Mojo.Dom.get('power');
- if(this.batteryLevel == 100)
+- if(this.batteryLevel == 100)
- Mojo.Dom.get('power').className = 'battery-charged';
- else
- Mojo.Dom.get('power').className = 'battery-charging-' + this.lastBatteryLevel;
++ var powerEl = Mojo.Dom.get('power');
++ if(this.batteryLevel == 100) {
+ powerEl.className = 'battery-charged';
+ powerEl.innerHTML = '';
-+ else {
++ } 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">' + this.batteryLevel + '%</div>'
+ }

0 comments on commit 8423052

Please sign in to comment.