-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
www-data
committed
Feb 20, 2012
1 parent
0f5b274
commit fa30c45
Showing
3 changed files
with
171 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/etc/dnsmasq.palm.conf b/etc/dnsmasq.palm.conf | ||
index 47b7908..4bebd01 100644 | ||
--- a/etc/dnsmasq.palm.conf | ||
+++ b/etc/dnsmasq.palm.conf | ||
@@ -286,5 +286,11 @@ interface=bridge0 | ||
# dnsmasq. | ||
#log-queries | ||
|
||
+#use the public google dns servers to resolve the domains gmail.com and googlemail.com. | ||
+server=/gmail.com/8.8.8.8 | ||
+server=/gmail.com/8.8.4.4 | ||
+server=/googlemail.com/8.8.8.8 | ||
+server=/googlemail.com/8.8.4.4 | ||
+ | ||
# Include a another lot of configuration options. | ||
conf-file=/tmp/pmnetconfig/dnsmasq.server.conf |
134 changes: 134 additions & 0 deletions
134
top-bar/top-bar-battery-percent-and-horizontal-icon.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
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 | ||
--- 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) { | ||
// Show the battery level if not charging | ||
if (!this.isCharging) { | ||
Mojo.Log.info("SystemUI- Is Charging "+ this.isCharging + " Battery level "+ i); | ||
- 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>' | ||
|
||
//Show Banner Message if the Battery level is below 20% | ||
var batteryalert = $L("#{percent_ui}% battery remaining").interpolate(payload); | ||
@@ -2104,10 +2106,14 @@ handlePowerNotifications: function(payload) { | ||
} | ||
else { | ||
Mojo.Log.info("SystemUI- Is Charging "+ this.isCharging ); | ||
+ var powerEl = Mojo.Dom.get('power'); | ||
if(payload.percent_ui == 100) | ||
- Mojo.Dom.get('power').className = 'battery-charged'; | ||
- else | ||
- Mojo.Dom.get('power').className = 'battery-charging-' + i; | ||
+ powerEl.className = 'battery-charged'; | ||
+ 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>' | ||
+ } | ||
|
||
} | ||
|
||
@@ -2152,10 +2158,14 @@ handlePowerNotifications: function(payload) { | ||
|
||
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) | ||
- Mojo.Dom.get('power').className = 'battery-charged'; | ||
- else | ||
- Mojo.Dom.get('power').className = 'battery-charging-' + this.lastBatteryLevel; | ||
+ powerEl.className = 'battery-charged'; | ||
+ 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>' | ||
+ } | ||
|
||
var stageController = Mojo.Controller.getAppController().getStageController("LowBatteryAlert"); | ||
if (stageController) { | ||
@@ -2179,7 +2189,9 @@ handlePowerNotifications: function(payload) { | ||
else { | ||
this.chargingBannerShown = false; | ||
Mojo.Log.info("SystemUI- Charger Notification "+ this.isCharging + " Last battery level "+ this.lastBatteryLevel); | ||
- 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>' | ||
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."); | ||
diff --git a/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css b/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css | ||
index a1cafa2..448bc72 100644 | ||
--- a/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css | ||
+++ b/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css | ||
@@ -142,36 +142,37 @@ body.palm-default { | ||
} | ||
|
||
#power { | ||
- margin-left: 2px; | ||
- width: 17px; | ||
-} | ||
- | ||
-#power.error { background-image: url(../images/battery-error.png); } | ||
-#power.battery-0 { background-image: url(../images/battery-0.png); } | ||
-#power.battery-1 { background-image: url(../images/battery-1.png); } | ||
-#power.battery-2 { background-image: url(../images/battery-2.png); } | ||
-#power.battery-3 { background-image: url(../images/battery-3.png); } | ||
-#power.battery-4 { background-image: url(../images/battery-4.png); } | ||
-#power.battery-5 { background-image: url(../images/battery-5.png); } | ||
-#power.battery-6 { background-image: url(../images/battery-6.png); } | ||
-#power.battery-7 { background-image: url(../images/battery-7.png); } | ||
-#power.battery-8 { background-image: url(../images/battery-8.png); } | ||
-#power.battery-9 { background-image: url(../images/battery-9.png); } | ||
-#power.battery-10 { background-image: url(../images/battery-10.png); } | ||
-#power.battery-11 { background-image: url(../images/battery-11.png); } | ||
- | ||
-#power.battery-charging-0 { background-image: url(../images/battery-charging-0.png); } | ||
-#power.battery-charging-1 { background-image: url(../images/battery-charging-1.png); } | ||
-#power.battery-charging-2 { background-image: url(../images/battery-charging-2.png); } | ||
-#power.battery-charging-3 { background-image: url(../images/battery-charging-3.png); } | ||
-#power.battery-charging-4 { background-image: url(../images/battery-charging-4.png); } | ||
-#power.battery-charging-5 { background-image: url(../images/battery-charging-5.png); } | ||
-#power.battery-charging-6 { background-image: url(../images/battery-charging-6.png); } | ||
-#power.battery-charging-7 { background-image: url(../images/battery-charging-7.png); } | ||
-#power.battery-charging-8 { background-image: url(../images/battery-charging-8.png); } | ||
-#power.battery-charging-9 { background-image: url(../images/battery-charging-9.png); } | ||
-#power.battery-charging-10 { background-image: url(../images/battery-charging-10.png); } | ||
-#power.battery-charging-11 { background-image: url(../images/battery-charging-11.png); } | ||
+ margin-left: 3px; | ||
+ margin-right: 2px; | ||
+ width: 20px; | ||
+} | ||
+ | ||
+#power.error { background-image: url(../images/battery-error.png); width: 17px } | ||
+#power.battery-0 { background-image: url(../images/battery-0.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-1 { background-image: url(../images/battery-1.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-2 { background-image: url(../images/battery-2.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-3 { background-image: url(../images/battery-3.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-4 { background-image: url(../images/battery-4.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-5 { background-image: url(../images/battery-5.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-6 { background-image: url(../images/battery-6.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-7 { background-image: url(../images/battery-7.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-8 { background-image: url(../images/battery-8.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-9 { background-image: url(../images/battery-9.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-10 { background-image: url(../images/battery-10.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+#power.battery-11 { background-image: url(../images/battery-11.png); -webkit-transform: rotate(-90deg); margin-top: 9px; } | ||
+ | ||
+#power.battery-charging-0 { background-image: url(../images/battery-charging-0.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-1 { background-image: url(../images/battery-charging-1.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-2 { background-image: url(../images/battery-charging-2.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-3 { background-image: url(../images/battery-charging-3.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-4 { background-image: url(../images/battery-charging-4.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-5 { background-image: url(../images/battery-charging-5.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-6 { background-image: url(../images/battery-charging-6.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-7 { background-image: url(../images/battery-charging-7.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-8 { background-image: url(../images/battery-charging-8.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-9 { background-image: url(../images/battery-charging-9.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-10 { background-image: url(../images/battery-charging-10.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
+#power.battery-charging-11 { background-image: url(../images/battery-charging-11.png); -webkit-transform: rotate(-90deg); margin-top: 10px; } | ||
#power.battery-charged { background-image: url(../images/battery-charged.png); } | ||
|
||
#rssi { |