How to change the Android navigation bar color in a PWA?

北城余情 提交于 2020-12-06 02:59:12

问题


I would like to change the color of the Android navigation bar on the web when I add the page on the Android home screen (Progessive Web App) but when I open the PWA, the color of the Android navigation bar is black and I want Change the color to white. In the manifest, you can change the color of the theme and I do, but still follow the color black.

Is it possible to do that?

Edit

I mean the Android navigation bar, not the notification bar.

Edit

I upload the image in dropbox because Stack Overflow say that I need more reputation I hope it is not inconvenient: https://www.dropbox.com/s/94vxuqoxlwjgcu7/IMG_20191007_093147.jpg?dl=0


回答1:


As far as I know it is currently not a PWA supported feature.




回答2:


You can add a meta tag to your HTML page.

<meta name="theme-color" content="#225577"/>



回答3:


The color of the navigation bar doesn't work with dark theme. Change to light theme and it will work.




回答4:


manifest.json -> "background_color": "#000000"



来源:https://stackoverflow.com/questions/58254183/how-to-change-the-android-navigation-bar-color-in-a-pwa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!