garretyoder/Colorful

translucent makes statusBar too dark

DanteAndroid opened this issue · 2 comments

before
after
I use Colorful.config(this) .translucent(true) .apply(); to make my Drawerlayout's content translucent, but to find it makes it too dark, which didn't happen if I use custom Theme instead of this library.
FIY, my original theme contains these properties:

        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>

There is something in your layout already tinting the space where the status bar would be. <item name="android:statusBarColor">@android:color/transparent</item> makes the status bar completely transparent. Colorful's default is just to enable UI transparency, and by default android has a semi transparent status bar. Get rid of whatever is coloring the space behind the status bar and it'll look the same.

Closing due to inactivity.