diff options
Diffstat (limited to 'app/src/main/res/values/styles.xml')
-rw-r--r-- | app/src/main/res/values/styles.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b280b7f9..885c5986 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -15,6 +15,10 @@ <item name="windowActionModeOverlay">true</item> <item name="android:actionModeBackground">?attr/colorPrimary</item> + <!-- Workaround: Preferences Dialogs are using AlertDialogs instead of MaterialAlertDialogs. --> + <!-- https://stackoverflow.com/questions/70650073/adjust-androidx-preference-dialogs-to-follow-material-you --> + <item name="alertDialogTheme">@style/PreferencesAlertDialogTheme</item> + <item name="materialAlertDialogTheme">@style/MaterialAlertDialogTheme</item> <item name="actionModeStyle">@style/actionModeStyle</item> @@ -47,6 +51,12 @@ <item name="buttonBarNeutralButtonStyle">@style/buttonStyle</item> </style> + <style name="PreferencesAlertDialogTheme" parent="MaterialAlertDialogTheme"> + <!-- https://m3.material.io/components/dialogs/specs#6771d107-624e-47cc-b6d8-2b7b620ba2f1 --> + <item name="dialogCornerRadius">28dp</item> + <item name="android:background">?attr/colorSurface</item> + </style> + <style name="buttonStyle" parent="Widget.Material3.Button.TextButton.Dialog"> <item name="android:textColor">?attr/colorAccent</item> </style> |