|
49 | 49 |
|
50 | 50 | <!-- MaterialAlertDialog --> |
51 | 51 | <!-- Use in conjunction with new MaterialAlertDialogBuilder(parentReference.get().requireContext(), R.style.AlertDialogTheme); --> |
52 | | - <style name="AlertDialogTheme" parent="Theme.MaterialComponents.Light.Dialog.Alert"> |
53 | | - <item name="buttonBarPositiveButtonStyle">@style/Alert.Button.Positive</item> |
54 | | - <item name="buttonBarNegativeButtonStyle">@style/Alert.Button.Negative</item> |
55 | | - <item name="buttonBarNeutralButtonStyle">@style/Alert.Button.Negative</item> |
| 52 | + <style name="AlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"> |
| 53 | + <item name="buttonBarPositiveButtonStyle">@style/AlertDialogPositiveButton</item> |
| 54 | + <item name="buttonBarNegativeButtonStyle">@style/AlertDialogNegativeButton</item> |
| 55 | + <item name="buttonBarNeutralButtonStyle">@style/AlertDialogNegativeButton</item> |
| 56 | + |
| 57 | + <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialogTitle</item> |
| 58 | + <item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialogMessage</item> |
56 | 59 | </style> |
57 | 60 |
|
58 | | - <style name="Alert.Button.Positive" parent="Widget.MaterialComponents.Button"> |
| 61 | + <style name="AlertDialogPositiveButton" parent="Widget.MaterialComponents.Button"> |
59 | 62 | <item name="backgroundTint">@color/color_accent</item> |
60 | 63 | <item name="android:layout_marginStart">16dp</item> |
61 | 64 | <item name="cornerRadius">24dp</item> |
62 | 65 | <item name="android:textColor">@color/text_color_white</item> |
63 | 66 | </style> |
64 | 67 |
|
65 | | - <style name="Alert.Button.Negative" parent="Widget.MaterialComponents.Button.OutlinedButton"> |
| 68 | + <style name="AlertDialogNegativeButton" parent="Widget.MaterialComponents.Button.OutlinedButton"> |
66 | 69 | <item name="cornerRadius">24dp</item> |
67 | 70 | <item name="strokeColor">@color/color_accent</item> |
68 | 71 | <item name="rippleColor">@color/color_accent</item> |
69 | 72 | <item name="android:textColor">@color/color_accent</item> |
70 | 73 | </style> |
| 74 | + |
| 75 | + <style name="MaterialAlertDialogTitle" parent="MaterialAlertDialog.MaterialComponents.Title.Text"> |
| 76 | + <item name="android:fontFamily">@font/open_sans</item> |
| 77 | + <item name="android:textStyle">bold</item> |
| 78 | + <item name="android:textSize">16sp</item> |
| 79 | + </style> |
| 80 | + |
| 81 | + <style name="MaterialAlertDialogMessage" parent="MaterialAlertDialog.MaterialComponents.Body.Text"> |
| 82 | + <item name="android:fontFamily">@font/open_sans</item> |
| 83 | + <item name="android:textSize">14sp</item> |
| 84 | + </style> |
| 85 | + |
71 | 86 | <!-- END MaterialAlertDialog --> |
72 | 87 |
|
73 | 88 | <!-- Metadata update activities for triggers have a different primary color. --> |
|
0 commit comments