Fix alert dialog style

This commit is contained in:
Koitharu
2024-04-24 10:07:19 +03:00
parent 73e768def0
commit 56892aea3c
2 changed files with 7 additions and 5 deletions

View File

@@ -35,12 +35,15 @@
<!--AlertDialog-->
<style name="ThemeOverlay.Kotatsu.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="android:layout">@layout/m3_alert_dialog</item>
<item name="android:background">@drawable/m3_popup_background</item>
<style name="ThemeOverlay.Kotatsu.AlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="alertDialogStyle">@style/AlertDialog.Kotatsu</item>
<item name="dialogCornerRadius">@dimen/m3_alert_dialog_corner_size</item>
</style>
<style name="AlertDialog.Kotatsu" parent="MaterialAlertDialog.Material3">
<item name="android:background">@drawable/m3_popup_background</item>
</style>
<!-- Bottom sheet -->
<style name="ThemeOverlay.Kotatsu.BottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog">

View File

@@ -56,9 +56,8 @@
<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
<item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item>
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
<item name="alertDialogTheme">@style/ThemeOverlay.Kotatsu.MaterialAlertDialog</item>
<item name="alertDialogTheme">@style/ThemeOverlay.Kotatsu.AlertDialog</item>
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Kotatsu.BottomSheetDialog</item>
<item name="materialAlertDialogTheme">@style/ThemeOverlay.Kotatsu.MaterialAlertDialog</item>
<item name="textAppearanceButton">@style/TextAppearance.Kotatsu.Button</item>
<item name="android:buttonStyle">?attr/borderlessButtonStyle</item>
<item name="android:backgroundDimAmount">0.32</item>