Difference between revisions of "Patch Clock Change Alarm Button Order"

From WebOS Internals
Jump to navigation Jump to search
(New page: = Changing Alarm Clock Button Order and Snooze Duration= First we change the button order. The file containing the look of the alarm alert is /usr/palm/applications/com.palm.app.clock/app...)
 
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Changing Alarm Clock Button Order and Snooze Duration=
+
{{template:patch}}
First we change the button order. The file containing the look of the alarm alert is /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html
+
==Change Alarm Button Order==
 +
The default order for the alarm buttons is to have the 'Dismiss' button on top, and the 'Snooze' button underneath. For some, this makes it too easy to accidentally dismiss an alarm instead of snoozing it, causing them to accidentally sleep in. The file containing the look of the alarm alert is /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html. Swap lines 15 and 16 (WebOS 1.2.1) to reverse the order of the buttons.
  
Simply swap lines 15 and 16 to put the snooze button on top.
+
===Patch Source (button-order.patch)===
 
+
<source lang="diff">
Second we will change the alarm duration. It is located at lines 379 and 381 of /usr/palm/applications/com.palm.app.clock/app/models/alarm.js
+
--- /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html.bak 2009-07-18 01:22:36.000000000 -0400
 
+
+++ /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html 2009-10-05 12:21:54.493217000 -0400
The default times are below :
+
@@ -12,6 +12,6 @@
 
+
</div>
<pre><nowiki>
+
</div>
Alarm.kAlarmSnoozeDuration = "00:05:00";
+
</div>
</nowiki></pre>
+
- <div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
 
+
<div id="snooze_button" x-mojo-tap-highlight="immediate" class="palm-notification-button alternate"><span x-mojo-loc="">Snooze</span></div>
<pre><nowiki>
+
+ <div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
Alarm.kAlarmSnoozeInterruptedDuration = "00:05:00";
+
</div>               
</nowiki></pre>
+
\ No newline at end of file
 
+
</source>
Reboot
 
That's all!
 
Thanks to optik678 for the alarm clock modification.
 

Latest revision as of 17:26, 5 October 2009


Change Alarm Button Order

The default order for the alarm buttons is to have the 'Dismiss' button on top, and the 'Snooze' button underneath. For some, this makes it too easy to accidentally dismiss an alarm instead of snoozing it, causing them to accidentally sleep in. The file containing the look of the alarm alert is /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html. Swap lines 15 and 16 (WebOS 1.2.1) to reverse the order of the buttons.

Patch Source (button-order.patch)

<source lang="diff"> --- /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html.bak 2009-07-18 01:22:36.000000000 -0400 +++ /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html 2009-10-05 12:21:54.493217000 -0400 @@ -12,6 +12,6 @@

-

Dismiss
Snooze

+

Dismiss

\ No newline at end of file </source>