From 97b0a8aa68ffc7fdaa3d3ff2adc04a9fd03a3a0a Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Tue, 22 Oct 2024 21:57:14 -0600 Subject: [PATCH] ui: haromize bottom sheet radii w/cover radii --- .../auxio/playback/PlaybackBottomSheetBehavior.kt | 2 +- .../auxio/playback/queue/QueueBottomSheetBehavior.kt | 2 +- app/src/main/res/values/styles_ui.xml | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/playback/PlaybackBottomSheetBehavior.kt b/app/src/main/java/org/oxycblt/auxio/playback/PlaybackBottomSheetBehavior.kt index b6731e3ce..84c5df5e2 100644 --- a/app/src/main/java/org/oxycblt/auxio/playback/PlaybackBottomSheetBehavior.kt +++ b/app/src/main/java/org/oxycblt/auxio/playback/PlaybackBottomSheetBehavior.kt @@ -48,7 +48,7 @@ class PlaybackBottomSheetBehavior(context: Context, attributeSet: Attr shapeAppearanceModel = ShapeAppearanceModel.builder( context, - MR.style.ShapeAppearance_Material3_Corner_ExtraLarge, + R.style.ShapeAppearance_Auxio_BottomSheet, MR.style.ShapeAppearanceOverlay_Material3_Corner_Top) .build() } diff --git a/app/src/main/java/org/oxycblt/auxio/playback/queue/QueueBottomSheetBehavior.kt b/app/src/main/java/org/oxycblt/auxio/playback/queue/QueueBottomSheetBehavior.kt index 35eead292..02da14b5b 100644 --- a/app/src/main/java/org/oxycblt/auxio/playback/queue/QueueBottomSheetBehavior.kt +++ b/app/src/main/java/org/oxycblt/auxio/playback/queue/QueueBottomSheetBehavior.kt @@ -72,7 +72,7 @@ class QueueBottomSheetBehavior(context: Context, attributeSet: Attribu shapeAppearanceModel = ShapeAppearanceModel.builder( context, - MR.style.ShapeAppearance_Material3_Corner_ExtraLarge, + R.style.ShapeAppearance_Auxio_BottomSheet, MR.style.ShapeAppearanceOverlay_Material3_Corner_Top) .build() } diff --git a/app/src/main/res/values/styles_ui.xml b/app/src/main/res/values/styles_ui.xml index 2d9a779a9..3e8f51a6e 100644 --- a/app/src/main/res/values/styles_ui.xml +++ b/app/src/main/res/values/styles_ui.xml @@ -37,10 +37,15 @@ false false false - @style/ShapeAppearance.Material3.Corner.None + @style/ShapeAppearance.Auxio.BottomSheet true + + + +