Skip to content
Snippets Groups Projects
Commit 8d47d657 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Set status bar fixed with background black

parent 1ab26c31
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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
......@@ -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'))
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment