Skip to content

Commit

Permalink
Bunch of patches from script
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Beames committed Nov 26, 2009
1 parent d0e2826 commit b6becb8
Show file tree
Hide file tree
Showing 33 changed files with 23,920 additions and 4 deletions.
22 changes: 22 additions & 0 deletions app-launcher/app-launcher-show-firstuse-app.LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2009 jack87 <akop87@gmail.com>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
10 changes: 10 additions & 0 deletions app-launcher/app-launcher-show-firstuse-app.patch
@@ -0,0 +1,10 @@
--- /usr/palm/applications/com.palm.app.firstuse/appinfo.json.orig
+++ /usr/palm/applications/com.palm.app.firstuse/appinfo.json
@@ -3,6 +3,6 @@
"type": "web",
"main": "index.html",
"id": "com.palm.app.firstuse",
- "visible": "false",
+ "visible": "true",
"icon": "icon.png"
}
22 changes: 22 additions & 0 deletions browser/browser-gestureclick-context-menu.LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2009 zinge

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
23 changes: 23 additions & 0 deletions browser/browser-gestureclick-context-menu.patch
@@ -0,0 +1,23 @@
--- .orig/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
+++ /usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
@@ -608,7 +608,7 @@
tapPt.left = event.centerX - tapPt.left;
tapPt.top = event.centerY - tapPt.top;

- if (event.altKey) {
+ if (event.altKey || event.metaKey) {

var popupItems = [
{label: $L('Open In New Card'), command:'openNew'},
--- .orig/usr/palm/frameworks/mojo/builtins/palmInitFramework200_47.js
+++ /usr/palm/frameworks/mojo/builtins/palmInitFramework200_47.js
@@ -26666,7 +26666,7 @@
this._addElementHighlight(event.centerX,event.centerY);
}

-if(event.altKey){
+if(event.altKey || event.metaKey){




22 changes: 22 additions & 0 deletions clock/clock-alarm-daily-options.LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2009 romanodog

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
254 changes: 254 additions & 0 deletions clock/clock-alarm-daily-options.patch
@@ -0,0 +1,254 @@
Name: alarm daily options
Version: 1.3.1-1
Author: b romano
Description: This patch will add the daily values Sunday, Monday, Tuesday, Wednesday, etc. to your alarm options.

--- .orig/usr/palm/applications/com.palm.app.clock/app/models/alarms.js
+++ /usr/palm/applications/com.palm.app.clock/app/models/alarms.js
@@ -134,5 +134,12 @@
"daily": $L("Daily"),
"once": $L(" "),
"weekdays": $L("Weekdays"),
- "weekends": $L("Weekends")
+ "weekends": $L("Weekends"),
+ "sunday": $L("Sundays"),
+ "monday": $L("Mondays"),
+ "tuesday": $L("Tuesdays"),
+ "wednesday": $L("Wednesdays"),
+ "thursday": $L("Thursdays"),
+ "friday": $L("Fridays"),
+ "saturday": $L("Saturdays")
}
--- .orig/usr/palm/applications/com.palm.app.clock/app/controllers/alarm-assistant.js
+++ /usr/palm/applications/com.palm.app.clock/app/controllers/alarm-assistant.js
@@ -5,7 +5,14 @@
{label:$L('Ring Once'), value:"once"},
{label:$L('Daily'), value:"daily" },
{label:$L('Weekdays'), value:"weekdays"},
- {label:$L('Weekends'), value:"weekends"}
+ {label:$L('Weekends'), value:"weekends"},
+ {label:$L('Sundays'), value:"sunday"},
+ {label:$L('Mondays'), value:"monday"},
+ {label:$L('Tuesdays'), value:"tuesday"},
+ {label:$L('Wednesdays'), value:"wednesday"},
+ {label:$L('Thursdays'), value:"thursday"},
+ {label:$L('Fridays'), value:"friday"},
+ {label:$L('Saturdays'), value:"saturday"}
],
initialize: function(alarm, deleteSelf) {
this.appControl = Mojo.Controller.getAppController();
--- .orig/usr/palm/applications/com.palm.app.clock/app/models/alarm.js
+++ /usr/palm/applications/com.palm.app.clock/app/models/alarm.js
@@ -232,6 +232,27 @@
case ('weekends'):
now = this.nextWeekend(d,now);
break;
+ case ('sunday'):
+ now = this.nextSpecificDay(d,now,Alarm.kSunday);
+ break;
+ case ('monday'):
+ now = this.nextSpecificDay(d,now,Alarm.kMonday);
+ break;
+ case ('tuesday'):
+ now = this.nextSpecificDay(d,now,Alarm.kTuesday);
+ break;
+ case ('wednesday'):
+ now = this.nextSpecificDay(d,now,Alarm.kWednesday);
+ break;
+ case ('thursday'):
+ now = this.nextSpecificDay(d,now,Alarm.kThursday);
+ break;
+ case ('friday'):
+ now = this.nextSpecificDay(d,now,Alarm.kFriday);
+ break;
+ case ('saturday'):
+ now = this.nextSpecificDay(d,now,Alarm.kSaturday);
+ break;
default:
now = this.nextDay(d,now);
break;
@@ -240,6 +261,30 @@
return now;

},
+
+ nextSpecificDay: function(d,now,day){
+ var timePassed = false;
+ if (now.getHours() > d.getHours() || (now.getHours() == d.getHours() && now.getMinutes() >= d.getMinutes())) {
+ timePassed = true;
+ }
+
+ if (day > today){
+ now.setDate(now.getDate() + (day - today));
+ }
+ else if (day == today){
+ if(timePassed){
+ now.setDate(now.getDate()+7);
+ }
+ }
+ else if (day < today){
+ now.setDate(now.getDate() + (7 + day - today));
+ }
+
+ now.setHours(d.getHours());
+ now.setMinutes(d.getMinutes());
+ now.setSeconds(0);
+ return now;
+ },

nextDay: function(d,now){
if (now.getHours() > d.getHours() || (now.getHours() == d.getHours() && now.getMinutes() >= d.getMinutes())) {
@@ -332,6 +377,76 @@
} else {
return (today == Alarm.kSunday ? 6 : 1)
}
+ case 'sunday':
+ if (today == Alarm.kSunday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kSunday){
+ return (7 + Alarm.kSunday - today);
+ }
+ else if (today < Alarm.kSunday){
+ return Alarm.kSunday - today;
+ }
+ case 'monday':
+ if (today == Alarm.kMonday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kMonday){
+ return (7 + Alarm.kMonday - today);
+ }
+ else if (today < Alarm.kMonday){
+ return Alarm.kMonday - today;
+ }
+ case 'tuesday':
+ if (today == Alarm.kTuesday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kTuesday){
+ return (7 + Alarm.kTuesday - today);
+ }
+ else if (today < Alarm.kTuesday){
+ return Alarm.kTuesday - today;
+ }
+ case 'wednesday':
+ if (today == Alarm.kWednesday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kWednesday){
+ return (7 + Alarm.kWednesday - today);
+ }
+ else if (today < Alarm.kWednesday){
+ return Alarm.kWednesday - today;
+ }
+ case 'thursday':
+ if (today == Alarm.kThursday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kThursday){
+ return (7 + Alarm.kThursday - today);
+ }
+ else if (today < Alarm.kThursday){
+ return Alarm.kThursday - today;
+ }
+ case 'friday':
+ if (today == Alarm.kFriday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kFriday){
+ return (7 + Alarm.kFriday - today);
+ }
+ else if (today < Alarm.kFriday){
+ return Alarm.kFriday - today;
+ }
+ case 'saturday':
+ if (today == Alarm.kSaturday && this.isLaterToday()) {
+ return 0;
+ }
+ else if (today >= Alarm.kSaturday){
+ return (7 + Alarm.kSaturday - today);
+ }
+ else if (today < Alarm.kSaturday){
+ return Alarm.kSaturday - today;
+ }
// if it rings daily or once, then it either rings today or tomorrow
case 'daily':
case 'once':
@@ -423,6 +538,76 @@
} else {
return "";
}
+ case 'sunday':
+ if (today == Alarm.kSunday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kSaturday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Sunday");
+ }
+ case 'monday':
+ if (today == Alarm.kMonday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kSunday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Monday");
+ }
+ case 'tuesday':
+ if (today == Alarm.kTuesday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kMonday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Tuesday");
+ }
+ case 'wednesday':
+ if (today == Alarm.kWednesday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kTuesday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Wednesday");
+ }
+ case 'thursday':
+ if (today == Alarm.kThursday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kWednesday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Thursday");
+ }
+ case 'friday':
+ if (today == Alarm.kFriday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kThursday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Friday");
+ }
+ case 'saturday':
+ if (today == Alarm.kSaturday && this.isLaterToday()) {
+ return "";
+ }
+ else if (today == Alarm.kFriday){
+ return $L("tomorrow");
+ }
+ else {
+ return $L("Saturday");
+ }
case 'daily':
case 'once':
if (this.isLaterToday()) {
22 changes: 22 additions & 0 deletions contacts/contacts-scrim-contacts.LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2009 mracer29 <mracer29@yahoo.com>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
16 changes: 16 additions & 0 deletions contacts/contacts-scrim-contacts.patch
@@ -0,0 +1,16 @@
--- .orig/usr/palm/applications/com.palm.app.contacts/stylesheets/list.css
+++ /usr/palm/applications/com.palm.app.contacts/stylesheets/list.css
@@ -18,6 +18,12 @@
.contacts-list-view .palm-list {
padding-top: 8px;
}
+body.wallpaper, body.palm-default {
+background: url(/media/internal/wallpapers/contacts-scrim.png) 0 0 fixed;
+background-color: #404040;
+-webkit-background-size: 100% 100%;
+color: white;
+}

.palm-alpha-divider {
height: 32px;
\ No newline at end of file

0 comments on commit b6becb8

Please sign in to comment.