Search code examples
androidstylesthemesandroid-6.0-marshmallowandroid-statusbar

Not able to get proper dark icons with android:windowLightStatusBar


I am trying to make the status bar of my app White and using android:windowLightStatusBar to get the dark status bar icons but All i am able to get isenter image description here

As you can see Some of the icons(like the network icons are not visible)

Here is the code I am trying this with

 <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/colorPrimary</item>

    <item name="colorPrimaryDark">@color/colorWhite</item>

    <item name="colorAccent">@color/colorAccent</item>

    <item name="windowActionModeOverlay">true</item>

    <item name="actionModeBackground">@color/colorWhite</item>

    <item name="windowActionBar">false</item>

    <item name="windowNoTitle">true</item>

    <item name="android:colorBackground">@color/colorMainBackground</item>

    <item name="android:windowLightStatusBar">true</item>
</style>

What could be causing this if anyone could tell, it would be a great help...Thanx


Solution

  • Please try running your app on a different phone or the emulator. There's no way to control the color of the status bar icons and your code regarding windowLightStatusBar looks fine.