webOS Nation Forums > webOS apps and software > webOS development > HOW TO: Change the time color on your home screen
Member: chris5h
at: 11:44 AM 08/11/2009
First off, you need to have a rooted pre.

1) SSH into your pre and use these two commands:
[CODE]sudo -i
mount -o remount,rw /[/CODE]

2) Back up the file your going to edit
[code]
cd /usr/lib/luna/system/luna-systemui/stylesheets/
cp systemui.css systemui.css.bak
[/code]

3) Edit the file "systemui.css" with Vi
[code]vi systemui.css[/code]

4) Look for the line that starts with "#date-and-time {"
Under that, add the line "color: #00ff00;" with whatever hex color you want. See below for an example.

[code]
#date-and-time {
color: #00ff00;
position: fixed;
margin: 1px 0 0 0;
top: 0;
left: 0;
height: 28px;
width: 100%;
padding: 0;
text-align: center;
[/code]

5) Remount the filesystem as read-only then restart Luna
[code]
mount -o remount ro /
stop LunaSysMgr && start LunaSysMgr[/code]


Here is a pic:




Enjoy.
Reply
Member: The_lane
at: 04:11 PM 08/11/2009
How do you change the EVDO/wifi colors?
Reply
Member: chris5h
at: 04:42 PM 08/11/2009
You have to change the image files.
http://forums.precentral.net/palm-pr...-1x-icons.html
Reply
Member: DNic
at: 04:54 PM 08/11/2009
What line is this on? Went through about 1200 lines, don't feel like sifting through 3400+.
Reply
Member: DNic
at: 05:30 PM 08/11/2009
Well I know why I couldn't find it. You have the wrong file listed

/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css

Is the correct one. Thanks for the info though!
Reply
Member: Webby_s
at: 05:58 PM 08/11/2009
Originally Posted by DNic:
Well I know why I couldn't find it. You have the wrong file listed

/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css

Is the correct one. Thanks for the info though!
Is that where you found it? I am going to look now. Like specifically at line #43?? But that doesn't have color?!<--- sorry about that, read the post a little closer! haha, got it!
Reply
Member: chris5h
at: 05:59 PM 08/11/2009
Your right. Fixed my first post.
You can search in the file though with Vi:

Originally Posted by http://www.webos-internals.org/wiki/Basic_Linux_Use#sudo:
Search for Text Within the File
/term Search forward for term
?term Search backward for term
n Go to the next instance, if any
N Go to the previous instance, if any

Reply
Member: Probaholic1
at: 08:46 PM 08/11/2009
Yeah, so I did this but the last thing it show me when I do the whole vi bar-assistant.js a bunch of spaces followed with a lot of lines with dash in each row
Reply
Member: Webby_s
at: 11:35 PM 08/11/2009
Originally Posted by Probaholic1:
Yeah, so I did this but the last thing it show me when I do the whole vi bar-assistant.js a bunch of spaces followed with a lot of lines with dash in each row
Chris5h needs to change the OP (within the code part) to have the systemui.css file NOT THE bar-assistant.js file. One has to modify the systemui.css file. At line 43 you will find the #date and time
Reply
Member: klharris10
at: 07:05 PM 08/13/2009
AFTER you do this how do you remount there is no instruction to get back to that, please help
Reply
Member: 2sslow
at: 08:24 PM 08/13/2009
Originally Posted by klharris10:
AFTER you do this how do you remount there is no instruction to get back to that, please help
hit the esc button then type :wq then enter.



BTW it is not necessary to remount as you need to reboot for the changes to take effect. Upon reboot the file system reverts back to RO automatically.

Doug
Reply
Member: mashiya
at: 09:47 PM 08/25/2009
Where do i find the color codes at. that green i suppose : color: #00ff00. but where do i find the rest of the color codes?
Reply
Member: mashiya
at: 11:04 PM 08/25/2009
Nevermind lol
Reply
Member: abcez
at: 09:50 PM 08/29/2009
thanks dude
Reply
Member: abcez
at: 09:53 PM 08/29/2009
how do you put your name?
Reply
Member: odontastic
at: 10:58 PM 08/29/2009
Instructions for changing the 'Sprint' text in the upper left to any text string can be found here or at webos-internals.org. Search for 'Change Carrier String.' Sorry i can't post links yet.
Reply
Member: OneDeep
at: 07:08 PM 09/01/2009
...how do I add the file that I back up?
Reply
Member: imtravis
at: 01:20 AM 09/03/2009
I was able to make changes w/o rooting.. (I haven't rooted mine yet), using WebOS Quick Installer, and Crimson Text editor. I recieve the files to change, edit them in Crimson editor, then send them back.. I then use novacom -t open tty:// command to connect to my pre, and do the stop LunaSysMgr and start LunaSysMgr...
Reply
Member: thierthierel
at: 07:54 PM 09/06/2009
ok so im new at this.... how do you root your pre? lol
Reply
Member: Webby_s
at: 03:59 AM 09/07/2009
Try this website out! Main Page - WebOS Internals

Hey all where is the .css file that controls the Just Charged/USB Mode/Media Mode?? I have changed the color and want to change it to something else. TIA
Reply

webOS Nation Forums > webOS apps and software > webOS development > HOW TO: Change the time color on your home screen