Fixed the quick launch bar patches
[webos-internals:modifications.git] / app-launcher / app-launcher-hide-quick-launch-bar.patch
1 Name: Hide Quick Launch Bar
2 Version: 1.3.1-1
3 Author: Jason Robitaille
4 Description: Hides the quick launch bar (while still alowing the quick launch wave)  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
7 +++ /usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
8 @@ -7,7 +7,7 @@
9  SystemManagerService.showQuickLaunch = function(show) {
10         var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, {
11                 method: 'systemUi',
12 -               parameters: {'quicklaunch':show}
13 +               parameters: {'quicklaunch':false}
14         });
15         request = null;
16  }
17 \ No newline at end of file
18 --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
19 +++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
20 @@ -8,7 +8,7 @@
21          * hardcoding the quick launch height until we can find a better way. 
22          * This value = ql graphic height - the offset from the top (small fade area)
23          */
24 -       kQuickLaunchHeight: 67,
25 +       kQuickLaunchHeight: 0,
26         
27         kPageIndicatorSpacing: 6,       /* spacing between each page indicator */
28         kPageMargin: 10, /* 10 pixel margin on each side of a page */
29 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
30 +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
31 @@ -17,6 +17,11 @@
32                 this.wifiState = 'Off'; 
33                 this.wifiRadio = false; 
34                 
35 +               this.controller.serviceRequest('palm://com.palm.systemmanager', {
36 +                       method: 'systemUi',
37 +                       parameters: {"quicklaunch": false}
38 +               });
39 +               
40                 $('rssi').className = 'nobars';
41                 $('datanet').className = 'off';
42                 $('wifi').className = 'off';
43 @@ -230,6 +235,12 @@
44                         $('appname').innerHTML = this.carrierText;
45                         this.phoneIsForeground = true;
46                 }
47 +               else if (payload.id == "com.palm.launcher"){
48 +                       this.controller.serviceRequest('palm://com.palm.systemmanager', {
49 +                               method: 'systemUi',
50 +                               parameters: {"quicklaunch": false}
51 +                       });
52 +               }
53                 else if (this.isPreferences(payload))  {
54                         if(payload.id == "com.palm.app.updates") {
55                                 this.updateIsForeground = true;
56 @@ -242,6 +253,10 @@
57                 this.foregroundAppID = payload.id;
58         }
59         else{
60 +               this.controller.serviceRequest('palm://com.palm.systemmanager', {
61 +                       method: 'systemUi',
62 +                       parameters: {"quicklaunch": false}
63 +               });
64                 $('appname').hide();
65                 $('carrier').show();
66                 this.foregroundAppID=null;