Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updates and additions

  • Loading branch information...
commit 8423052451684314cf93fa613f36677726b4d68c 1 parent e666f1b
www-data authored
16 top-bar/top-bar-battery-percent-and-horizontal-icon.patch
... ... @@ -1,5 +1,5 @@
1 1 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
2   -index 48c4681..b5949ea 100644
  2 +index 48c4681..45c55dc 100644
3 3 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4 4 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5 5 @@ -2070,7 +2070,9 @@ handlePowerNotifications: function(payload) {
@@ -17,14 +17,15 @@ index 48c4681..b5949ea 100644
17 17 }
18 18 else {
19 19 Mojo.Log.info("SystemUI- Is Charging "+ this.isCharging );
20   -+ var powerEl = Mojo.Dom.get('power');
21   - if(payload.percent_ui == 100)
  20 +- if(payload.percent_ui == 100)
22 21 - Mojo.Dom.get('power').className = 'battery-charged';
23 22 - else
24 23 - Mojo.Dom.get('power').className = 'battery-charging-' + i;
  24 ++ var powerEl = Mojo.Dom.get('power');
  25 ++ if(payload.percent_ui == 100) {
25 26 + powerEl.className = 'battery-charged';
26 27 + powerEl.innerHTML = '';
27   -+ else {
  28 ++ } else {
28 29 + powerEl.className = 'battery-charging-' + i;
29 30 + powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
30 31 + }
@@ -35,14 +36,15 @@ index 48c4681..b5949ea 100644
35 36
36 37 if (this.isCharging) {
37 38 Mojo.Log.info("SystemUI- Charger Notification "+ this.isCharging + " Last battery level "+ this.lastBatteryLevel);
38   -+ var powerEl = Mojo.Dom.get('power');
39   - if(this.batteryLevel == 100)
  39 +- if(this.batteryLevel == 100)
40 40 - Mojo.Dom.get('power').className = 'battery-charged';
41 41 - else
42 42 - Mojo.Dom.get('power').className = 'battery-charging-' + this.lastBatteryLevel;
  43 ++ var powerEl = Mojo.Dom.get('power');
  44 ++ if(this.batteryLevel == 100) {
43 45 + powerEl.className = 'battery-charged';
44 46 + powerEl.innerHTML = '';
45   -+ else {
  47 ++ } else {
46 48 + powerEl.className = 'battery-charging-' + this.lastBatteryLevel;
47 49 + powerEl.innerHTML = '<div style="-webkit-transform: rotate(90deg); position: absolute; right: -11px; bottom: -3px; text-align: right; font-size: 10px">' + this.batteryLevel + '%</div>'
48 50 + }

0 comments on commit 8423052

Please sign in to comment.
Something went wrong with that request. Please try again.