garretyoder / Colorful

Android runtime theme library
Apache License 2.0
2.13k stars 193 forks source link

translucent makes statusBar too dark #6

Closed DanteAndroid closed 7 years ago

DanteAndroid commented 7 years ago

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>
garretyoder commented 7 years ago

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.

garretyoder commented 7 years ago

Closing due to inactivity.