From 4ade27e66de4deef5258f550f3ca5342b304c2aa Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sat, 12 Aug 2023 11:41:26 -0600 Subject: [PATCH] ui: avoid lopsided bottom sheet handles By default, bottom sheet handles have 16dp bottom padding for some reason. This looked really bad on the dialogs, so remove it there. Only keep it on the queue handle, since it has a companion label that will overlap if not lopsided. --- app/src/main/res/layout/fragment_main.xml | 1 + app/src/main/res/values/styles_core.xml | 3 +-- app/src/main/res/values/styles_ui.xml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml index 58259f50b..98328654d 100644 --- a/app/src/main/res/layout/fragment_main.xml +++ b/app/src/main/res/layout/fragment_main.xml @@ -56,6 +56,7 @@ android:id="@+id/queue_handle" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingBottom="@dimen/spacing_medium" app:layout_constraintTop_toTopOf="parent" /> @style/Widget.Auxio.LinearProgressIndicator @style/Widget.Auxio.BottomSheet @style/Widget.Auxio.BottomSheet.Dialog + @style/Widget.Auxio.BottomSheet.Handle @style/TextAppearance.Auxio.DisplayLarge @style/TextAppearance.Auxio.DisplayMedium @@ -51,8 +52,6 @@ none false true - - @color/sel_compat_ripple ?attr/colorOnSurfaceVariant ?attr/colorPrimary diff --git a/app/src/main/res/values/styles_ui.xml b/app/src/main/res/values/styles_ui.xml index 98228e1aa..5106e12b9 100644 --- a/app/src/main/res/values/styles_ui.xml +++ b/app/src/main/res/values/styles_ui.xml @@ -59,6 +59,10 @@ @anim/bottom_sheet_slide_out + +