Make androidx.preference dialog match M3 dialog (#8909)
This commit is contained in:
parent
287489d7d0
commit
e7937fe562
15
app/src/main/res/drawable/material_popup_background.xml
Normal file
15
app/src/main/res/drawable/material_popup_background.xml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape>
|
||||||
|
<solid android:color="?attr/colorSurface" />
|
||||||
|
<corners android:radius="@dimen/m3_alert_dialog_corner_size" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<shape>
|
||||||
|
<solid android:color="@color/m3_popupmenu_overlay_color" />
|
||||||
|
<corners android:radius="@dimen/m3_alert_dialog_corner_size" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
@ -14,10 +14,8 @@
|
|||||||
<!--AlertDialog-->
|
<!--AlertDialog-->
|
||||||
<!--===========-->
|
<!--===========-->
|
||||||
<style name="ThemeOverlay.Tachiyomi.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
|
<style name="ThemeOverlay.Tachiyomi.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
|
||||||
<item name="android:textColorPrimary">?attr/colorOnSurface</item>
|
|
||||||
<item name="android:textColor">?attr/colorOnSurface</item>
|
|
||||||
<item name="android:colorBackground">?attr/colorSurface</item>
|
|
||||||
<item name="android:layout">@layout/m3_alert_dialog</item>
|
<item name="android:layout">@layout/m3_alert_dialog</item>
|
||||||
|
<item name="android:background">@drawable/material_popup_background</item>
|
||||||
<item name="dialogCornerRadius">@dimen/m3_alert_dialog_corner_size</item>
|
<item name="dialogCornerRadius">@dimen/m3_alert_dialog_corner_size</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user