Created
June 2, 2019 21:18
Ionic 4 - White Status (Signal) Bar Color
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Case: When working with dark colors in your app's header section, the default black color of the iOS native signal/status bar can create a disturbing and hard to read appereance. Changing this to white gives the app a more user-friendly tone. | |
// Todo: In your app.component.ts you will find the following funtion inside of 'export class xyz'... | |
initializeApp() { | |
this.platform.ready().then(() => { | |
// ...change this line and add '.styleLightContent()' at the end instead of 'this.statusBar.styleDefault()' | |
this.statusBar.styleLightContent(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment