Make androidx.preference dialog match M3 dialog (#8909)

This commit is contained in:
zbue 2023-01-15 06:00:19 +08:00 committed by GitHub
parent 287489d7d0
commit e7937fe562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View 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>

View file

@ -14,10 +14,8 @@
<!--AlertDialog-->
<!--===========-->
<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:background">@drawable/material_popup_background</item>
<item name="dialogCornerRadius">@dimen/m3_alert_dialog_corner_size</item>
</style>