From 8d47d6577ec445fa0eff5a0cc5463a829fdfdb2d Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 11 Aug 2015 17:55:27 -0300 Subject: [PATCH] Set status bar fixed with background black --- client/lib/menu.coffee | 6 ------ client/stylesheets/base.less | 12 ------------ client/views/main.coffee | 9 +-------- mobile-config.js | 4 +++- 4 files changed, 4 insertions(+), 27 deletions(-) diff --git a/client/lib/menu.coffee b/client/lib/menu.coffee index 715427e17df..e91bf2db08c 100644 --- a/client/lib/menu.coffee +++ b/client/lib/menu.coffee @@ -8,16 +8,10 @@ open: -> if not @isOpen() @container?.removeClass("menu-closed").addClass("menu-opened") - if Meteor.isCordova - StatusBar.hide() close: -> if @isOpen() @container?.removeClass("menu-opened").addClass("menu-closed") - if Meteor.isCordova - Meteor.setTimeout -> - StatusBar.show() - , 300 toggle: -> if @isOpen() diff --git a/client/stylesheets/base.less b/client/stylesheets/base.less index 02daabb682a..0eb35ec7250 100644 --- a/client/stylesheets/base.less +++ b/client/stylesheets/base.less @@ -3336,18 +3336,7 @@ a.github-fork { } .is-cordova { - .main-content { - top: 10px; - } - - .side-nav > .header { - padding-top: 10px; - height: 70px; - } - .flex-tab { - padding-top: 10px; - .control { padding-left: 50px; } @@ -3360,7 +3349,6 @@ a.github-fork { } .connection-status > .alert { - padding-top: 18px; border-width: 0 0 1px 0; } } \ No newline at end of file diff --git a/client/views/main.coffee b/client/views/main.coffee index a6649075c60..8b6e4db9443 100644 --- a/client/views/main.coffee +++ b/client/views/main.coffee @@ -69,14 +69,7 @@ Template.body.onRendered -> Template.main.helpers logged: -> - if Meteor.userId()? - if Meteor.isCordova - StatusBar.styleDefault() - return true - else - if Meteor.isCordova - StatusBar.styleLightContent() - return false + return Meteor.userId()? subsReady: -> return not Meteor.userId()? or (FlowRouter.subsReady('userData', 'activeUsers')) diff --git a/mobile-config.js b/mobile-config.js index b0857b1675f..f56793d45c7 100644 --- a/mobile-config.js +++ b/mobile-config.js @@ -47,7 +47,9 @@ App.launchScreens({ // Set PhoneGap/Cordova preferences App.setPreference('HideKeyboardFormAccessoryBar', true); -App.setPreference('StatusBarStyle', 'default'); +App.setPreference('StatusBarOverlaysWebView', false); +App.setPreference('StatusBarStyle', 'lightcontent'); +App.setPreference('StatusBarBackgroundColor', '#000000'); App.accessRule('*'); // // Pass preferences for a particular PhoneGap/Cordova plugin