unity-tidbits
unity-tidbits copied to clipboard
Status bar text color aways White
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?
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
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?