Patch Clock Enabling the Hidden Theme

From WebOS Internals
Revision as of 18:32, 29 July 2009 by Hopspitfire (talk | contribs) (New page: This is a theme that Palm doesn't have activate as of webOS1.0.4 In: /usr/palm/applications/com.palm.app.clock/themes/ File: themes.json @ Line 13 replace <pre><nowiki> } </nowiki></pre...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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