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.
This commit is contained in:
@@ -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" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<item name="linearProgressIndicatorStyle">@style/Widget.Auxio.LinearProgressIndicator</item>
|
||||
<item name="bottomSheetStyle">@style/Widget.Auxio.BottomSheet</item>
|
||||
<item name="bottomSheetDialogTheme">@style/Widget.Auxio.BottomSheet.Dialog</item>
|
||||
<item name="bottomSheetDragHandleStyle">@style/Widget.Auxio.BottomSheet.Handle</item>
|
||||
|
||||
<item name="textAppearanceDisplayLarge">@style/TextAppearance.Auxio.DisplayLarge</item>
|
||||
<item name="textAppearanceDisplayMedium">@style/TextAppearance.Auxio.DisplayMedium</item>
|
||||
@@ -51,8 +52,6 @@
|
||||
<item name="android:scrollbars">none</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
|
||||
<!-- Fix dumb default android behavior -->
|
||||
<item name="colorControlHighlight">@color/sel_compat_ripple</item>
|
||||
<item name="colorControlNormal">?attr/colorOnSurfaceVariant</item>
|
||||
<item name="colorControlActivated">?attr/colorPrimary</item>
|
||||
|
||||
@@ -59,6 +59,10 @@
|
||||
<item name="android:windowExitAnimation">@anim/bottom_sheet_slide_out</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.BottomSheet.Handle" parent="Widget.Material3.BottomSheet.DragHandle">
|
||||
<item name="android:paddingBottom">0dp</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.Image.Small" parent="">
|
||||
<item name="android:layout_width">@dimen/size_cover_compact</item>
|
||||
<item name="android:layout_height">@dimen/size_cover_compact</item>
|
||||
|
||||
Reference in New Issue
Block a user