Color Android navigation bar according to selected theme

Some device manufacturers including OnePlus and Samsung decided for a default white navigation bar instead of the usual black. This white bar really stands out in dark themes and looks ugly, see this screenshot:

Can we get a colored navigation bar that fits the selected theme, e.g. a black one for the dark themes? This is usually simply done by setting android:navigationBarColor accordingly, e.g. to 0xff000000 for a black navbar.

Thanks for the request and even pointing to the solution!

I always dismissed this because I’m not a fan of tampering with system UI (it might break or look bad on some devices).

But I guess after so many requests I’ll have look.

Done, let’s see how this plays out once the update ships.

Thanks for the quick response and implementing this suggestion!

For that its worth, more and more Android apps color the navigation bar to fit the general design: Telegram always sets it to pure black [1], WhatsApp makes it black dependent on what screen you are on and even Google Photos and the new Gmail color the bar (pure white in both cases).
So I wouldn’t expect any problems with coloring it.

I’ve just received the beta update. For whatever reason, the color is not applied and the bar stays white on my OnePlus device. Apparently OnePlus Devices fall back to a white navigation bar when one sets it to pure black via styles.xml [1]. Either setting it to an almost-black (e.g. #ff000001) or using getWindow().setNavigationBarColor(0xff000000); does work according to the above link.

I don’t really understand why they intentionally choose this behaviour or haven’t fixed this if it is a bug. The system apps have a pure black navbar when in dark mode, so they must use the second method mentioned above in their own apps.

See, see, this is what I was talking about :smiley:

Though avoiding burn-in might be a real concern… :thinking:

@Blubbb So did the latest beta fix things?

The latest beta has a black navigation bar for me. Thank you very much!

1 Like

Hey there, I did not want to create a new post so I’ll use this one.

When you use the navigation bar, the black background looks a little bit weird.


I included two screenshots, one of SeriesGuide and one of another app (Google Photos) that applies the color of the app to the navigation bar background.
(The other one is the next comment, because I cannot share 2.)

In my opinion the adaptive color (Google Photos, Reddit,…) looks so much better, an option for that would be nice.
But I am not a developer, so I can’t say if it’s possible or provide help. :frowning:

Thank you.

Here it is. :grin:

@McBaumwolle My original opinion on this has not really changed. Maybe at some point.

1 Like