Difference between revisions of "Patch webOS Change Carrier String"
SagaciousB (talk | contribs) (Added information on how to change font color. Also added direction to back up original files in case the user screws up.) |
|||
Line 79: | Line 79: | ||
<pre><nowiki> | <pre><nowiki> | ||
mount -o remount ro / | mount -o remount ro / | ||
− | initctl stop LunaSysMgr | + | /sbin/initctl stop LunaSysMgr |
− | initctl start LunaSysMgr | + | /sbin/initctl start LunaSysMgr |
</nowiki></pre> | </nowiki></pre> | ||
http://prebrew.org/blog/2009/07/01/customize-your-carrier-text/ | http://prebrew.org/blog/2009/07/01/customize-your-carrier-text/ | ||
http://forums.precentral.net/web-os-development/189942-change-your-carrier-text-anything-besides-sprint.html | http://forums.precentral.net/web-os-development/189942-change-your-carrier-text-anything-besides-sprint.html |
Revision as of 19:29, 25 July 2009
Further testing has revealed that editing bar-scene.html fails. The following is a revised mod as a result of that testing.
Want to change the Sprint text in the upper left hand corner to something more interesting? Maybe your name or different carrier to fake out your friends? Well here’s how:
You’ll need to: Enable Root Access
Log in and execute the following commands:
sudo -i
Unlock the file system:
mount -o remount rw /
Back up your old file in case you screw up or want to revert your changes:
cp /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js.bak
Edit the following:
vi /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
Go to line 440 and make this change. Of course, instead of using "Verizon" you can use what ever string you would like.
//$('carrier').innerHTML = this.carrierText $('carrier').innerHTML = $L("Verizon");
Turning on and off Airplane Mode brings back the "sprint". To get it to show your string like "Verizon" again;
Goto line 698 and make this change.
//$('carrier').innerHTML = this.carrierText; $('carrier').innerHTML = $L("Verizon");
Lock your file system:
mount -o remount ro /
Restart LunaSysMgr:
initctl stop LunaSysMgr initctl start LunaSysMgr
To Modify the Font Color
If you would like to modify the color of the carrier text, you must edit the appropriate .css file.
With the filesystem still unlocked in rw mode, back up the following file:
cp /usr/lib/luna/system/luna-systemui/stylesheets/systemui.css /usr/lib/luna/system/luna-systemui/stylesheets/systemui.css.bak
Now edit the file with vi:
vi /usr/lib/luna/system/luna-systemui/stylesheets/systemui.css
Search to the line beginning with #carrier (line #93) and modify the color attribute from the default hex value of #fff to the desired HTML color of your choice. The example below shows a red color.
#carrier { float: left; color: #E01000; margin-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
Then you can lock the filesystem and restart LunaSysMgr as above:
mount -o remount ro / /sbin/initctl stop LunaSysMgr /sbin/initctl start LunaSysMgr
http://prebrew.org/blog/2009/07/01/customize-your-carrier-text/ http://forums.precentral.net/web-os-development/189942-change-your-carrier-text-anything-besides-sprint.html