unity-tidbits icon indicating copy to clipboard operation
unity-tidbits copied to clipboard

Status bar text color aways White

Open diegoleao opened this issue 5 years ago • 2 comments

Hi, I'm trying to use the ApplicationChrome class to customize my company's app, but since the app has entirely white backgrounds, including its header, my status bar text (and icons) needs to be black (or other color), how can I achieve that?

Any tips on how to customize ApplicationChrome to do this?

diegoleao avatar Aug 26 '20 23:08 diegoleao

I just fixed it by adding: private static int SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 0x00002000;

And adding this line when I want light mode: newSystemUiVisibilityValue |= SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;

I attached my modified script bellow (it also contains a fix so that the navigation bar can be hidden, it wasn't working before). ApplicationChrome.zip

diegoleao avatar Aug 27 '20 00:08 diegoleao

Thanks for this fix! it seems like the original Auther discontinued this project. The only thing I'm missing right now is being able to change the color of the Navigation bar buttons. Any ideas how I can fix this?

Sven-vh avatar Jul 08 '23 13:07 Sven-vh