Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StyleDefault will set light text instead of dark. #213

Closed
3 tasks done
crazyserver opened this issue Jun 10, 2021 · 3 comments
Closed
3 tasks done

StyleDefault will set light text instead of dark. #213

crazyserver opened this issue Jun 10, 2021 · 3 comments

Comments

@crazyserver
Copy link

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

  1. Open iOS system settings and set dark mode.
  2. Open the app, and check white over white is applied.

Command or Code

    StatusBar.overlaysWebView(false);
    StatusBar.backgroundColorByHexString('#FFFFFF');
    StatusBar.styleDefault();

Environment, Platform, Device

Using latest version 2.4.3
iOS 14.5 or 14.6

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@crazyserver crazyserver changed the title tyleDefault will set light text instead of dark. StyleDefault will set light text instead of dark. Jun 10, 2021
@tobeagram
Copy link

tobeagram commented Oct 5, 2021

#181 PR adds styleDarkContent – creating a new way to modify the status bar text to be dark on a white background.

@conipoi
Copy link

conipoi commented Jan 20, 2022

Hey all, we're using this plugin and are encountering issues in ios dark mode and would like to have a dark statusbar text on light background. Afais this is what Tobias implemented. Could somebody review his merge request?

@jcesarmobile
Copy link
Member

in version 3 of the plugin the StyleDefault will set the status bar to black text as documented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants