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

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/11/2009, 10:44 AM   #1 (permalink)
Member
 
Join Date: Sep 2007
Posts: 29
Likes Received: 0
Thanks: 1
Thanked 21 Times in 8 Posts
Default HOW TO: Change the time color on your home screen

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 /
2) Back up the file your going to edit
Code:
cd /usr/lib/luna/system/luna-systemui/stylesheets/
cp systemui.css systemui.css.bak
3) Edit the file "systemui.css" with Vi
Code:
vi systemui.css
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;
5) Remount the filesystem as read-only then restart Luna
Code:
mount -o remount ro /
stop LunaSysMgr && start LunaSysMgr

Here is a pic:




Enjoy.

Last edited by chris5h; 08/12/2009 at 09:45 AM.
chris5h is offline   Reply With Quote
Thanked by DNic, drgnlover, SFWD1934
Old 08/11/2009, 03:11 PM   #2 (permalink)
Member
 
Join Date: Jun 2009
Posts: 297
Likes Received: 0
Thanks: 5
Thanked 19 Times in 19 Posts
Default

How do you change the EVDO/wifi colors?
__________________
Quote:
Originally Posted by NickDG View Post
Welcome to open source. Things can get bumpy. Please fasten your seat belts.
Quote:
Originally Posted by dianagr View Post
You can also swipe a counterclockwise semi-circle around the center button to go back. [Do a back gesture]
The_lane is offline   Reply With Quote
Old 08/11/2009, 03:42 PM   #3 (permalink)
Member
 
Join Date: Sep 2007
Posts: 29
Likes Received: 0
Thanks: 1
Thanked 21 Times in 8 Posts
Default

You have to change the image files.
http://forums.precentral.net/palm-pr...-1x-icons.html
chris5h is offline   Reply With Quote
Old 08/11/2009, 03:54 PM   #4 (permalink)
Member
 
DNic's Avatar
 
Join Date: Jun 2009
Posts: 599
Likes Received: 0
Thanks: 174
Thanked 44 Times in 34 Posts
Default

What line is this on? Went through about 1200 lines, don't feel like sifting through 3400+.
DNic is offline   Reply With Quote
Old 08/11/2009, 04:30 PM   #5 (permalink)
Member
 
DNic's Avatar
 
Join Date: Jun 2009
Posts: 599
Likes Received: 0
Thanks: 174
Thanked 44 Times in 34 Posts
Default

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!
DNic is offline   Reply With Quote
Old 08/11/2009, 04:58 PM   #6 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

Quote:
Originally Posted by DNic View Post
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!
__________________
Still happily rooting my launch 6/6/09 Pre!
(and my wife's)

Last edited by Webby_s; 08/11/2009 at 05:15 PM.
Webby_s is offline   Reply With Quote
Old 08/11/2009, 04:59 PM   #7 (permalink)
Member
 
Join Date: Sep 2007
Posts: 29
Likes Received: 0
Thanks: 1
Thanked 21 Times in 8 Posts
Default

Your right. Fixed my first post.
You can search in the file though with Vi:

Quote:
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
chris5h is offline   Reply With Quote
Old 08/11/2009, 07:46 PM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 12
Likes Received: 0
Thanks: 1
Thanked 1 Time in 1 Post
Default

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
Probaholic1 is offline   Reply With Quote
Old 08/11/2009, 10:35 PM   #9 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

Quote:
Originally Posted by Probaholic1 View Post
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
__________________
Still happily rooting my launch 6/6/09 Pre!
(and my wife's)
Webby_s is offline   Reply With Quote
Old 08/13/2009, 06:05 PM   #10 (permalink)
Member
 
Join Date: Aug 2009
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

AFTER you do this how do you remount there is no instruction to get back to that, please help
klharris10 is offline   Reply With Quote
Old 08/13/2009, 07:24 PM   #11 (permalink)
Member
 
2sslow's Avatar
 
Join Date: Jun 2009
Location: Somewhere n da 404
Posts: 2,237
Likes Received: 0
Thanks: 247
Thanked 1,039 Times in 551 Posts
Default

Quote:
Originally Posted by klharris10 View Post
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
2sslow is offline   Reply With Quote
Old 08/25/2009, 08:47 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Posts: 57
Likes Received: 0
Thanks: 28
Thanked 0 Times in 0 Posts
Default

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?
mashiya is offline   Reply With Quote
Old 08/25/2009, 10:04 PM   #13 (permalink)
Member
 
Join Date: Jun 2009
Posts: 57
Likes Received: 0
Thanks: 28
Thanked 0 Times in 0 Posts
Default

Nevermind lol
mashiya is offline   Reply With Quote
Old 08/29/2009, 08:50 PM   #14 (permalink)
Member
 
Join Date: Aug 2009
Posts: 19
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

thanks dude
abcez is offline   Reply With Quote
Old 08/29/2009, 08:53 PM   #15 (permalink)
Member
 
Join Date: Aug 2009
Posts: 19
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

how do you put your name?
abcez is offline   Reply With Quote
Old 08/29/2009, 09:58 PM   #16 (permalink)
Member
 
Join Date: Jul 2009
Posts: 133
Likes Received: 0
Thanks: 98
Thanked 15 Times in 13 Posts
Default

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.
odontastic is offline   Reply With Quote
Old 09/01/2009, 06:08 PM   #17 (permalink)
Member
 
OneDeep's Avatar
 
Join Date: Apr 2009
Location: Indiana
Posts: 1,509
Likes Received: 0
Thanks: 45
Thanked 131 Times in 106 Posts
Default

...how do I add the file that I back up?
OneDeep is offline   Reply With Quote
Old 09/03/2009, 12:20 AM   #18 (permalink)
Member
 
Join Date: Oct 2004
Location: Californy
Posts: 129
Likes Received: 0
Thanks: 109
Thanked 8 Times in 7 Posts
Default

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...
imtravis is offline   Reply With Quote
Old 09/06/2009, 06:54 PM   #19 (permalink)
Member
 
Join Date: Aug 2009
Location: ohioo
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok so im new at this.... how do you root your pre? lol
thierthierel is offline   Reply With Quote
Old 09/07/2009, 02:59 AM   #20 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

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
__________________
Still happily rooting my launch 6/6/09 Pre!
(and my wife's)
Webby_s is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0