Outstanding patches from Jason
[webos-internals:modifications.git] / app-launcher / app-launcher-hide-quick-launch-bar.patch
1 Name: Hide Quick Launch Bar in Launcher
2 Version: 1.3.5-1
3 Author: Jason Robitaille
4 Description: Hides the quick launch bar in the launcher  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7 +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8 @@ -236,6 +236,13 @@
9                         }
10                         $('appname').innerHTML = $L("Preferences");
11                 }
12 +               else if (payload.id == "com.palm.launcher"){
13 +                       this.controller.serviceRequest('palm://com.palm.systemmanager', {
14 +                               method: 'systemUi',
15 +                               parameters: {"quicklaunch": false}
16 +                       });
17 +                       $('appname').innerHTML = payload.appmenu || payload.title;
18 +               }
19                 else 
20                         $('appname').innerHTML = payload.appmenu || payload.title;
21                 $('appname').show();
22 --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
23 +++ /usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
24 @@ -233,7 +233,7 @@
25                         this.launcherHiddenAtFirstKeydown = false;
26                 }
27                 else {
28 -                       SystemManagerService.showQuickLaunch(true);
29 +                       SystemManagerService.showQuickLaunch(false);
30                 }
31         },
32         
33 --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
34 +++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
35 @@ -8,7 +8,7 @@
36          * hardcoding the quick launch height until we can find a better way. 
37          * This value = ql graphic height - the offset from the top (small fade area)
38          */
39 -       kQuickLaunchHeight: 67,
40 +       kQuickLaunchHeight: 0,
41         
42         kPageIndicatorSpacing: 6,       /* spacing between each page indicator */
43         kPageMargin: 10, /* 10 pixel margin on each side of a page */
44 @@ -495,7 +495,7 @@
45                                                                                                         this.controller,
46                                                                                                         function() {
47                                                                                                                 delete this.appDialog;
48 -                                                                                                               SystemManagerService.showQuickLaunch(true);
49 +                                                                                                               SystemManagerService.showQuickLaunch(false);
50                                                                                                                 this.globalSearchAssistant.enable(true);
51                                                                                                         }.bind(this));
52