webOS Nation Forums >  Homebrew >  webOS patches > Patch Complete: Dismiss & Snooze Button Increase Space Patch
Patch Complete: Dismiss & Snooze Button Increase Space Patch

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/11/2009, 09:30 PM   #1 (permalink)
Member
 
Join Date: Oct 2009
Posts: 197
Likes Received: 7
Thanks: 15
Thanked 27 Times in 21 Posts
Default Patch Complete: Dismiss & Snooze Button Increase Space Patch

So I have heard from a lot of people have been using the Pre as their morning alarm. It goes off and they roll over half asleep and tap their Pre and go back to sleep. they wake up a few hours later realizing there are late for work due to accidentally hitting dismiss instead of snooze. Well I have your solution to this!!!

The patch will put some space between the Dismiss and Snooze Buttons.
Right now this is manual application of the patch until I figure out how to create an official patch to add to the repository for automatic patching.

**Pre Must Be Rooted**

Log into your Pre to have access to the linux terminal.

navigate to /usr/palm/applications/com.palm.app.clock/app/views/ring/
Code:
cd /usr/palm/applications/com.palm.app.clock/app/views/ring/
edit ring-scene.html
Code:
vi ring-scene.html
Find Following Line (Should be first line in file.):
Code:
<div class="system-notification" style="height: 200px; position: fixed; bottom: 0">
Change it to:
Code:
<div class="system-notification" style="height: 275px; position: fixed; 
bottom: 0">
***Edit by pressing
Code:
i
now you can edit as if it was any other text editor***
***Once you are done changing height to 275 Press Esc to get out of Edit mode***

Fine Following Lines (Should be Line # 15 & 16)
Code:
<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>
Change it to:
Code:
<div id="close_button" x-mojo-tap-highlight="immediate" class="palm-notification-button affirmative"><span x-mojo-loc="">Dismiss</span></div>
        <br>
        <br>
        <div id="snooze_button" x-mojo-tap-highlight="immediate" class="palm-notification-button alternate"><span x-mojo-loc="">Snooze</span></div>
Save Changes and Exit editing file
***Press
Code:
Shift Button ZZ
****

now that you are back at the Terminal navigate to:
/usr/palm/applications/com.palm.app.clock/app/controllers

Edit app-assistant.js (vi app-assistant.js)

Find Following Line (Line # 139):
Code:
"height": 200,
Change it to:
Code:
"height": 350,
Save and Exit

Done!!!!

Will look like attached Image
Attached Images
File Type: png DismissSnoozeSpace.png (77.9 KB, 95 views) Email Attachment
elpollodiablo1 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0