Patch Clock Enabling the Hidden Theme

From WebOS Internals

Revision as of 23:12, 29 September 2009 by Andrewboudreau (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This is a theme that Palm doesn't have activate as of webOS1.2.0

In: /usr/palm/applications/com.palm.app.clock/themes/ File: themes.json @ Line 13 replace

}

with

},
{
		"name":"manualanalog",
		"nicename":"Analog Black",
		"description":"",
		"source": "themes/manualanalog/"
}

Restart LunaSysMgr

sudo ./sbin/initctl stop LunaSysMgr
sudo ./sbin/initctl start LunaSysMgr

Thanks goes out to frankos72 @ precentral for this orginal modification.


Enable Day & Date within the new clock

This mod will give you the Time & Date on the new theme Analog Black Clock mod1.jpg

In: /usr/palm/applications/com.palm.app.clock/themes/manualanalog/

File: manualanalog-clock-functions.js

@ Line: 92&93 un-comment the lines so they look like this:

                       
 this.controller.get('date').textContent = Mojo.Format.formatDate(now, {"date":"short"});
 this.controller.get('day').textContent = Mojo.Format.getDateTimeHash().medium.day[now.getDay()];

In: /usr/palm/applications/com.palm.app.clock/themes/manualanalog/ File: manualanalog-clock.html

@ Line: 4&5 make it look like this:

     <div id="day" class="day"></div>
     <div id="date" class="date"></div>

Restart LunaSysMgr, enjoy.

sudo ./sbin/initctl stop LunaSysMgr
sudo ./sbin/initctl start LunaSysMgr
-Phrozen
Personal tools
Google AdSense