Simbaclaws edited a comment on issue #189:
URL: 
https://github.com/apache/cordova-plugin-statusbar/issues/189#issuecomment-750884999


   Hey @aacassandra, I think you should set both the style and the background. 
The style is meant to show dark or light icons in the statusbar. The background 
is to set the specific background color for that specific style. 
   
   So if the style is dark the icons in the bar will be light, and the 
background should then be set to dark.
   
   For example:
   ```typescript
   StatusBar.setStyle({
               style: StatusBarStyle.Dark
             });
   StatusBar.setBackgroundColor({
                 color: '#000000'
               });
   ```
   
   StatusBarStyle.Dark == light icons in statusbar
   StatusBar.setBackgroundColor == dark background color for status bar
   
   You probably want to use both of them.
   
   Your language is quite readable to me, you have nothing to worry about ;)
   
   EDIT: Also I think you realize that putting these StatusBar.setStyle 
underneath each other like in your example, will cause the bar to be changed to 
the one that was set as last style. But I think your example was meant to show 
which functions to use, rather than using them in that specific order if I'm 
not mistaken?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to