ui: refactor shadow management

Make the shadow disabling workaround an XML style.

Doing it this way is more elegant than disabling it in-code.
This commit is contained in:
OxygenCobalt
2022-08-09 09:10:19 -06:00
parent bcc16fb88c
commit 83d1e4eae4
6 changed files with 24 additions and 18 deletions
+6
View File
@@ -93,6 +93,12 @@
<item name="android:paddingBottom">@dimen/recycler_fab_space_normal</item>
</style>
<style name="Widget.Auxio.DisableDropShadows" parent="">
<!-- API 28+ Only -->
<item name="android:outlineAmbientShadowColor" tools:ignore="NewApi">@android:color/transparent</item>
<item name="android:outlineSpotShadowColor" tools:ignore="NewApi">@android:color/transparent</item>
</style>
<style name="ThemeOverlay.Accent" parent="">
<item name="colorOnPrimary">?attr/colorSurface</item>
</style>