ui: animate play/pause button shape

Make the shape of the play/pause buttons throughout the app morph from
a circle if paused to a square if playing.

Android 13 seemingly does this to their play/pause button, so we copy
it too.

Tangentally related to #162.
This commit is contained in:
Alexander Capehart
2022-08-27 15:21:08 -06:00
parent a34541e95d
commit 0b43dd011c
10 changed files with 108 additions and 13 deletions
+1 -1
View File
@@ -87,7 +87,7 @@
<!-- A variant of button that emulates a FAB-ish button that plays along with widget restrictions -->
<style name="Widget.Auxio.MaterialButton.AppWidget.PlayPause" parent="Widget.AppCompat.Button.Borderless">
<item name="android:minWidth">@dimen/size_btn</item>
<item name="android:background">@drawable/ui_remote_fab_bg</item>
<item name="android:background">@drawable/ui_remote_fab_container_paused</item>
<item name="android:tint">?attr/colorOnPrimary</item>
</style>
</resources>