I changed the header to a darker color using this:
<ion-nav-bar class="bar-royal">
When I run it on ios, the status bar text (time, carrier, battery, etc) at the top is black and difficult to see on the dark background. How do I make this text white?
Looks like the newer versions of ionic have it built-in, so I just put StatusBar.style(1)
in app.js, in the:
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
// StatusBar.styleDefault();
StatusBar.style(1)
}
});
})
section.
I also removed the StatusBar.styleDefault(); that was already in there.
Ionic view doesn’t support most of the cordova plugins. Status bar is one that won’t work in ionic view, but does work once you compile the app and install it.