fab: Make label responsive to night mode

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-06-01 17:20:36 +05:30
parent a54a03aa2f
commit af814951f3
4 changed files with 9 additions and 2 deletions

View File

@ -6,5 +6,5 @@
android:left="8dp" android:left="8dp"
android:right="8dp" android:right="8dp"
android:top="4dp" /> android:top="4dp" />
<solid android:color="#444444" /> <!-- TODO(msf): themeify this --> <solid android:color="@color/fab_label_background_color" />
</shape> </shape>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="fab_label_text_color">#000000</color>
<color name="fab_label_background_color">#bbbbbb</color>
</resources>

View File

@ -4,4 +4,6 @@
<color name="list_item_activated">#cfd8dc</color> <!-- Blue Grey 200 --> <color name="list_item_activated">#cfd8dc</color> <!-- Blue Grey 200 -->
<color name="list_item_ripple">#808e95</color> <!-- Blue Grey 200 dark --> <color name="list_item_ripple">#808e95</color> <!-- Blue Grey 200 dark -->
<color name="accent">#2196F3</color> <color name="accent">#2196F3</color>
<color name="fab_label_text_color">#ffffff</color>
<color name="fab_label_background_color">#444444</color>
</resources> </resources>

View File

@ -11,7 +11,7 @@
<style name="fab_label" parent="android:TextAppearance.DeviceDefault.Inverse"> <style name="fab_label" parent="android:TextAppearance.DeviceDefault.Inverse">
<item name="android:background">@drawable/fab_label_background</item> <item name="android:background">@drawable/fab_label_background</item>
<item name="android:textColor">#ffffff</item> <!-- TODO(msf): themeify this --> <item name="android:textColor">@color/fab_label_text_color</item>
</style> </style>
</resources> </resources>