Fix Dark theme to display cards as slightly lighter than background as per Material Design standards. Also redirect colors to app as opposed to calling on framework

This commit is contained in:
daveyannihilation 2018-10-21 05:26:25 +08:00 committed by John Wu
parent f76bb009f4
commit fc791b4371
2 changed files with 6 additions and 2 deletions

View File

@ -39,11 +39,11 @@
</style>
<style name="CardViewStyle.Dark" parent="CardView">
<item name="cardBackgroundColor">@android:color/background_dark</item>
<item name="cardBackgroundColor">@color/card_background_color_dark</item>
</style>
<style name="CardViewStyle.Light" parent="CardView">
<item name="cardBackgroundColor">@android:color/background_light</item>
<item name="cardBackgroundColor">@color/card_background_color_light</item>
</style>
<style name="AppTheme.StatusBar" parent="AppTheme">

View File

@ -20,4 +20,8 @@
<color name="flashing_background_color">@android:color/black</color>
<color name="ic_launcher_background">#00AF9C</color>
<!-- Card colors -->
<color name="card_background_color_dark">#ff424242</color>
<color name="card_background_color_light">#ffffffff</color>
</resources>