Merge pull request #1693 from gokadzev/md3

Use the latest MDC and improve "MD3" now playing theme UI
This commit is contained in:
Thomas Möller 2024-12-10 16:58:45 +01:00 committed by GitHub
commit fd52f39c4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 15 additions and 23 deletions

View file

@ -28,8 +28,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:maxHeight="2dp"
style="@style/Widget.Retro.Slider"
android:background="@android:color/transparent"
style="@style/Widget.Retro.MD3.Custom.Slider"
app:layout_constraintEnd_toStartOf="@id/songTotalTime"
app:layout_constraintStart_toEndOf="@id/songCurrentProgress"
app:layout_constraintTop_toTopOf="parent"

View file

@ -256,9 +256,20 @@
<item name="cornerSize">50%</item>
</style>
<style name="Widget.Retro.Slider" parent="Widget.Material3.Slider">
<style name="Widget.Retro.Slider" parent="Widget.Material3.Slider.Legacy">
<item name="labelBehavior">gone</item>
<item name="thumbRadius">6dp</item>
<item name="haloRadius">18dp</item>
</style>
<style name="Widget.Retro.MD3.Custom.Slider" parent="Widget.Material3.Slider">
<item name="labelBehavior">gone</item>
<item name="thumbHeight">26dp</item>
<item name="thumbWidth">4dp</item>
<item name="thumbTrackGapSize">4dp</item>
<item name="trackHeight">14dp</item>
<item name="thumbElevation">0dp</item>
<item name="background">@android:color/transparent</item>
<item name="haloRadius">0dp</item>
</style>
</resources>