Patch Clock Change Alarm Button Order

From WebOS Internals

Jump to: navigation, search


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)

--- /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 @@
 			</div>
 		</div>
 	</div>
-	<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>
+	<div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
 </div>                 
\ No newline at end of file
Personal tools
Google AdSense