| |   |
| 1 | 1 | 4X4 Launcher page for webOS 1.2.0 |
| Index: /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| =================================================================== |
| --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| +++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| index 4da3e85..48fc720 100644 |
| --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js |
| 6 | 6 | @@ -10,7 +10,7 @@ var LauncherAssistant = Class.create({ |
| 7 | 7 | */ |
| 8 | 8 | kQuickLaunchHeight: 67, |
| … | … | |
| 12 | 12 | kPageMargin: 10, /* 10 pixel margin on each side of a page */ |
| 13 | 13 | kPageWidthNoMargin: NaN, |
| 14 | 14 | kPageWidth: NaN, |
| @@ -23,8 +23,8 @@ var LauncherAssistant = Class.create({ |
| visible: true, |
| label: $L('Launcher'), |
| items: [ |
| - /*{ label: $L('New page'), command: 'newpage' }, |
| - { label: $L('Delete page'), command: 'deletepage' },*/ |
| + { label: $L('New page'), command: 'newpage' }, |
| + { label: $L('Delete page'), command: 'deletepage' }, |
| Mojo.Menu.editItem, |
| { label: $L('List Apps...'), command: 'listapps' }, |
| Mojo.Menu.helpItem |
| @@ -117,7 +117,7 @@ var LauncherAssistant = Class.create({ |
| case 'listapps': |
| ApplicationService.launch(this.deviceInfo.id, this.deviceInfo.params); |
| break; |
| - /* |
| + |
| case 'newpage': |
| if (this.pageDivs.length < 10) { |
| this.insertPage(this.activePageIndex, true); |
| @@ -131,7 +131,7 @@ var LauncherAssistant = Class.create({ |
| } |
| } |
| break; |
| - */ |
| + |
| } |
| } |
| else if (event.type === Mojo.Event.commandEnable) { |
| 44 | 15 | @@ -324,9 +324,9 @@ var LauncherAssistant = Class.create({ |
| 45 | 16 | var newAppDiv = $(newAppInfo.launchPointId); |
| 46 | 17 | Mojo.assert(newAppDiv !== undefined, "Application (%d) was inserted into the DOM but unable to be retrieved!", newAppInfo.launchPointId); |
| … | … | |
| 19 | 19 | - this.kAppWidth = newAppDiv.getWidth(); |
| 20 | 20 | - this.kAppHeight = newAppDiv.getHeight(); |
| 21 | 21 | - this.kAppsPerRow = Math.round(this.kPageWidthNoMargin / this.kAppWidth); |
| + this.kAppWidth = 72; |
| + this.kAppHeight = 90; |
| + this.kAppWidth = 80; |
| + this.kAppHeight = 85; |
| 24 | 24 | + this.kAppsPerRow = 4; |
| 25 | 25 | } |
| 26 | 26 | |
| … | … | |
| 30 | 30 | calculateAppPosition: function(appIndex) { |
| 31 | 31 | return { |
| 32 | 32 | - left: (((appIndex % this.kAppsPerRow) * this.kAppWidth) + this.kPageMargin), |
| + left: (((appIndex % this.kAppsPerRow) * this.kAppWidth)), |
| + left: (((appIndex % this.kAppsPerRow) * this.kAppWidth) - 10), |
| 34 | 34 | top: (Math.floor(appIndex/this.kAppsPerRow) * this.kAppHeight) |
| 35 | 35 | }; |
| 36 | 36 | }, |
| Index: /usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| =================================================================== |
| --- .orig/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| +++ /usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| @@ -121,7 +121,7 @@ body.palm-default |
| diff --git a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| index b1244af..61ea830 100644 |
| --- a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| +++ b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css |
| @@ -121,8 +121,9 @@ body.palm-default |
| 42 | 42 | |
| 43 | 43 | .launcher_page .name { |
| 44 | 44 | position:absolute; |
| 45 | 45 | - top: 68px; |
| - width:100px; |
| 46 | 47 | + top: 48px; |
| width:100px; |
| + left:9px; |
| + width:80px; |
| 48 | 50 | height: 34px; |
| 49 | 51 | max-height: 34px; |
| @@ -130,7 +130,7 @@ body.palm-default |
| clear:both; |
| @@ -130,7 +131,7 @@ body.palm-default |
| 51 | 54 | color:white; |
| 52 | 55 | text-align:center; |
| 53 | 56 | font-weight:bold; |
| … | … | |
| 59 | 59 | overflow: hidden; |
| 60 | 60 | text-overflow: ellipsis; |
| 61 | 61 | z-index:5; |
| @@ -164,8 +164,8 @@ body.palm-default |
| @@ -164,8 +165,8 @@ body.palm-default |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | .draggable { |
| … | … | |
| 70 | 70 | margin: 0 auto; |
| 71 | 71 | -webkit-user-drag: any; |
| 72 | 72 | -webkit-user-select: none; |
| @@ -213,8 +213,8 @@ body.palm-default |
| @@ -213,8 +214,8 @@ body.palm-default |
| 74 | 74 | |
| 75 | 75 | #app-icon { |
| 76 | 76 | float:left; |
| … | … | |
| 80 | 80 | + height:32px; |
| 81 | 81 | background: center center no-repeat; |
| 82 | 82 | } |
| |