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

From WebOS Internals
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{template:patch}}
 
{{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 456 and 458 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>
Alarm.kAlarmSnoozeDuration = "00:10:00";
+
</div>
Alarm.kAlarmSnoozeInterruptedDuration = "00:05:00";
+
</div>
 
+
- <div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
Just change the time durations.
+
<div id="snooze_button" x-mojo-tap-highlight="immediate" class="palm-notification-button alternate"><span x-mojo-loc="">Snooze</span></div>
 
+
+ <div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
Reboot
+
</div>               
 
+
\ No newline at end of file
That's all!
+
</source>
 
 
Thanks to optik678 for the alarm clock modification.
 
 
 
Updated by ShaneM 31-Jul-09 (1.1 OK)
 

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>