Android: Fix fab background colour in dark mode

This commit is contained in:
Connor McLaughlin 2021-01-03 18:18:36 +10:00
parent 4eee5ebdb7
commit 600e8d5dd0
4 changed files with 5 additions and 3 deletions

View file

@ -42,7 +42,7 @@
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_marginBottom="@dimen/fab_margin" android:layout_marginBottom="@dimen/fab_margin"
android:layout_marginRight="96dp" android:layout_marginRight="96dp"
app:backgroundTint="@android:color/background_light" app:backgroundTint="@color/fab_background"
app:srcCompat="@drawable/ic_baseline_play_arrow_24" /> app:srcCompat="@drawable/ic_baseline_play_arrow_24" />
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
@ -51,7 +51,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin" android:layout_margin="@dimen/fab_margin"
app:backgroundTint="@android:color/background_light" app:backgroundTint="@color/fab_background"
app:srcCompat="@android:drawable/ic_input_add" /> app:srcCompat="@android:drawable/ic_input_add" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -5,4 +5,5 @@
<color name="colorAccent">#03A9F4</color> <color name="colorAccent">#03A9F4</color>
<color name="black_overlay">#66000000</color> <color name="black_overlay">#66000000</color>
<color name="fab_background">#222222</color>
</resources> </resources>

View file

@ -5,4 +5,5 @@
<color name="colorAccent">#D81B60</color> <color name="colorAccent">#D81B60</color>
<color name="black_overlay">#66000000</color> <color name="black_overlay">#66000000</color>
<color name="fab_background">#ffffffff</color>
</resources> </resources>