crazyserver opened a new issue #213:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/213
# Bug Report
## Problem
When dark mode is selected on the iOS settings, if you have a white
background, using styleDefault will use light text instead of dark. Also
tested using styleBlackOpaque with the same behaviour.
When dark mode is disabled, styleDefault will use dark text as expected.
Probably a new function styleDarkContent is needed.
### What is expected to happen?
Using styleDefault should use dark text.
### What does actually happen?
Using styleDefault will use light text instead of dark.
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
1. Open iOS system settings and set dark mode.
2. Open the app, and check white over white is applied.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
```
StatusBar.overlaysWebView(false);
StatusBar.backgroundColorByHexString('#FFFFFF');
StatusBar.styleDefault();
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Using latest version 2.4.3
iOS 14.5 or 14.6
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [X] I searched for existing GitHub issues
- [X] I updated all Cordova tooling to most recent version
- [X] I included all the necessary information above
--
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]