Over17 / UnityShowAndroidStatusBar

Show Android status bar for applications built with Unity 5.3 and later
MIT License
149 stars 35 forks source link

Transparent Navigation Bar #17

Closed SamuelKnox closed 6 years ago

SamuelKnox commented 6 years ago

Using the plugin makes the bottom navigation bar transparent. Using the opaque theme UnityStatusBarTheme makes it solid again, but then the top status bar is gray.

Device -> Pixel 2 XL running Android 8.1.0

Over17 commented 6 years ago

What is your expected behavior?

SamuelKnox commented 6 years ago

It is expected that the plugin will not affect the navigation bar. It is also expected that the opaque version of the status bar would be the same color as the opaque version of the navigation bar (black).

Over17 commented 6 years ago

Sorry for a very late answer.

You can configure the transparency of the navigation bar on your own, by changing the flag

true

in style definitions (values-v21 and values-v19), and then repacking/recompiling the aar.

On the opaque status bar color - it's controlled by the theme, in this case Theme.Material.Light.NoActionBar.Fullscreen. Unity by default uses Light themes, but I'd agree a dark one by default here makes more sense. I'll fix that.

Over17 commented 6 years ago

Non-light theme used in 0.5 release.