Patch to enable "hidden" clock in the Clock app shipped with WebOS 1.0.4. Also modde...
[webos-internals:modifications.git] / clock / hidden-clock.patch
1 Patch to enable "hidden" clock in the Clock app shipped
2 with WebOS 1.0.4.  Also modded to show day and date.
3
4 Mod by frankos72 @ precentral and Phrozen
5 Patch submitted by JackieRipper
6 Index: /usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock-functions.js
7 ===================================================================
8 --- .orig/usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock-functions.js
9 +++ /usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock-functions.js
10 @@ -89,8 +89,8 @@
11                         }
12                         // format date
13                 
14 -                       //this.controller.get('date').textContent = Mojo.Format.formatDate(now, {"date":"short"})
15 -                       //this.controller.get('day').textContent = Mojo.Format.getDateTimeHash().medium.day[now.getDay()];
16 +                       this.controller.get('date').textContent = Mojo.Format.formatDate(now, {"date":"short"})
17 +                       this.controller.get('day').textContent = Mojo.Format.getDateTimeHash().medium.day[now.getDay()];
18         }
19  
20         ManualanalogClockFunctions.prototype.alarm = function() {
21 Index: /usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock.html
22 ===================================================================
23 --- .orig/usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock.html
24 +++ /usr/palm/applications/com.palm.app.clock/themes/manualanalog/manualanalog-clock.html
25 @@ -1,8 +1,8 @@
26  
27  <div class="clock-container">
28         <div id="hands">
29 -                  <!-- <div id="day" class="day"></div>
30 -                  <div id="date" class="date"></div> -->
31 +                  <div id="day" class="day"></div>
32 +                  <div id="date" class="date"></div>
33  
34                    <div id="hour"></div>
35                    <div id="minute"></div>
36 Index: /usr/palm/applications/com.palm.app.clock/themes/themes.json
37 ===================================================================
38 --- .orig/usr/palm/applications/com.palm.app.clock/themes/themes.json
39 +++ /usr/palm/applications/com.palm.app.clock/themes/themes.json
40 @@ -10,5 +10,10 @@
41                 "nicename":"Analog",
42                 "description":"",
43                 "source": "themes/analog/"
44 +       },
45 +               "name":"manualanalog",
46 +               "nicename":"Analog Black",
47 +               "description":"",
48 +               "source": "themes/manualanalog/"
49         }
50 -]
51 \ No newline at end of file
52 +]