question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navigation bar color is white in dark mode

See original GitHub issue

Avoid duplicates

  • Bug is not mentioned in the FAQ
  • Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
  • Bug is not already reported in another issue

Technical details

  • Device name: Samsung Galaxy S10e
  • Android version: 10
  • App version: 2.0.5

Describe the bug

When dark/night mode is enabled, the navigation bar is still white.

Steps to reproduce the issue

  1. Enable dark mode on your device, if not done already.
  2. Start the CWA
  3. Look at your navigation bar

Screenshot_20210501-084430_Corona-Warn.jpg

Expected behaviour

The navigation bar follows the theme and turns black.

Possible Fix

Include these items to the base styles in values/styles.xml

<item name="android:navigationBarColor">?android:attr/colorBackground</item> 		
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">@bool/isLightTheme</item>

The isLightTheme should be true by default overwritten to false in values-night


Internal Tracking-ID: EXPOSUREAPP-6991

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
binarynoisecommented, Jul 19, 2021

@MikeMcC399 Yes, the issue has been fixed for me, I’m very happy. I actually forgot to close this issue 😅. I thought the PR would automatically close this when it gets merged. Looks great now (same as the screenshots in the PR) and has also been mirrored to CCTG.

1reaction
MikeMcC399commented, Jul 19, 2021

@binarynoise Did you have the opportunity to check whether this issue is fixed for you? It is flagged as fixed in version 2.3 and in the meantime version 2.5.1 has been released, so it ought to be fixed.

I tried to reproduce the original issue, but it seems that it is device specific and I don’t have your device (Samsung Galaxy S10e). So it would be good if you could check in the same environment where you originally saw the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS Dark Mode UINavigationBar not updating background color
... my UINavigationController navbar background stays white but the title text color does change to the dark mode title color, white. White text...
Read more >
Is there any fix for the navigation bar turning white, while in ...
Settings - themes and fonts - scroll to the bottom and there is a check box to make the nav bar the primary...
Read more >
Change navigation bar color from white to black - WordPress.org
When I scroll down at a page there is a white bar at the top of the page. on the right side is...
Read more >
Android navigation bar stays white in dark theme #4559 - GitHub
Since the antennapod 2.0 update, the Android navigation bar stays white in antennapod, even when the app theme is set to dark or...
Read more >
Changing navigation bar color to white, icons to dark, does not ...
I am trying to make the bottom navigation bar white, with dark icons (Versus the default of black background with white buttons.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found