|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | + ~ Copyright (C) 2022 The Android Open Source Project |
| 4 | + ~ |
| 5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + ~ you may not use this file except in compliance with the License. |
| 7 | + ~ You may obtain a copy of the License at |
| 8 | + ~ |
| 9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + ~ |
| 11 | + ~ Unless required by applicable law or agreed to in writing, software |
| 12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + ~ See the License for the specific language governing permissions and |
| 15 | + ~ limitations under the License. |
| 16 | +--> |
| 17 | +<resources xmlns:tools="http://schemas.android.com/tools"> |
| 18 | + <style name="Base.V14.ThemeOverlay.MaterialComponents.Dialog" parent="ThemeOverlay.AppCompat.Dialog"> |
| 19 | + <!-- Widget styles --> |
| 20 | + <item name="materialButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item> |
| 21 | + </style> |
| 22 | + |
| 23 | + <style name="Base.V14.ThemeOverlay.MaterialComponents.Dialog.Alert" parent="ThemeOverlay.AppCompat.Dialog.Alert"> |
| 24 | + <!-- Widget styles --> |
| 25 | + <item name="buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item> |
| 26 | + </style> |
| 27 | + |
| 28 | + <style name="Base.V14.ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="ThemeOverlay.AppCompat.Dialog.Alert"> |
| 29 | + <!-- Widget styles --> |
| 30 | + <item name="materialAlertDialogButtonSpacerVisibility">@integer/mtrl_view_invisible</item> |
| 31 | + <item name="alertDialogStyle">@style/MaterialAlertDialog.MaterialComponents</item> |
| 32 | + <item name="android:checkedTextViewStyle" tools:ignore="NewApi">@style/Widget.MaterialComponents.CheckedTextView</item> |
| 33 | + <item name="android:dialogCornerRadius" tools:ignore="newApi">@null</item> |
| 34 | + <item name="buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item> |
| 35 | + <item name="buttonBarPositiveButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item> |
| 36 | + <item name="buttonBarNegativeButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item> |
| 37 | + <item name="buttonBarNeutralButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item> |
| 38 | + <item name="android:backgroundDimAmount">0.32</item> |
| 39 | + <item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialog.MaterialComponents.Body.Text</item> |
| 40 | + </style> |
| 41 | + |
| 42 | + <style name="Base.ThemeOverlay.MaterialComponents.Dialog" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog"/> |
| 43 | + <style name="Base.ThemeOverlay.MaterialComponents.Dialog.Alert" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog.Alert"/> |
| 44 | + <style name="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="Base.V14.ThemeOverlay.MaterialComponents.MaterialAlertDialog"/> |
| 45 | + |
| 46 | + <!-- |
| 47 | + The default theme overlay used by MaterialComponents for regular dialogs. |
| 48 | + --> |
| 49 | + <style name="ThemeOverlay.MaterialComponents.Dialog" parent="Base.ThemeOverlay.MaterialComponents.Dialog"/> |
| 50 | + |
| 51 | + <!-- |
| 52 | + The default MaterialComponents theme overlay used for AlertDialogs built via the |
| 53 | + alertDialogTheme attribute. |
| 54 | + --> |
| 55 | + <style name="ThemeOverlay.MaterialComponents.Dialog.Alert" parent="Base.ThemeOverlay.MaterialComponents.Dialog.Alert"/> |
| 56 | + |
| 57 | + <!-- |
| 58 | + The default MaterialComponents theme overlay for AlertDialogs built with the MaterialAlertDialogBuilder, via the |
| 59 | + materialAlertDialogTheme attribute. |
| 60 | + --> |
| 61 | + <style name="ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog"> |
| 62 | + <item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Panel</item> |
| 63 | + <item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Icon</item> |
| 64 | + <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Text</item> |
| 65 | + </style> |
| 66 | + |
| 67 | + <!-- A theme overlay for MaterialComponents Alert Dialog panels with a center aligned title text and icon. --> |
| 68 | + <style name="ThemeOverlay.MaterialComponents.MaterialAlertDialog.Centered" parent="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog"> |
| 69 | + <item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Panel.CenterStacked</item> |
| 70 | + <item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Icon.CenterStacked</item> |
| 71 | + <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Text.CenterStacked</item> |
| 72 | + </style> |
| 73 | + |
| 74 | + <style name="Base.ThemeOverlay.Material3.Dialog" parent="Base.ThemeOverlay.MaterialComponents.Dialog"> |
| 75 | + <item name="materialButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item> |
| 76 | + </style> |
| 77 | + |
| 78 | + <style name="ThemeOverlay.Material3.Dialog" parent="Base.ThemeOverlay.Material3.Dialog"/> |
| 79 | + |
| 80 | + <!-- |
| 81 | + The default Material3 theme overlay used for AlertDialogs built via the |
| 82 | + alertDialogTheme attribute. |
| 83 | + --> |
| 84 | + <style name="ThemeOverlay.Material3.Dialog.Alert" parent="ThemeOverlay.MaterialComponents.Dialog.Alert"> |
| 85 | + <item name="buttonBarButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item> |
| 86 | + <item name="android:windowElevation" tools:ignore="NewApi">@dimen/m3_alert_dialog_elevation</item> |
| 87 | + </style> |
| 88 | + |
| 89 | + <!-- |
| 90 | + The default Material3 theme overlay for AlertDialogs built with the MaterialAlertDialogBuilder, via the |
| 91 | + materialAlertDialogTheme attribute. |
| 92 | + --> |
| 93 | + <style name="ThemeOverlay.Material3.MaterialAlertDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"> |
| 94 | + <item name="alertDialogStyle">@style/MaterialAlertDialog.Material3</item> |
| 95 | + <item name="android:windowElevation" tools:ignore="NewApi">@dimen/m3_alert_dialog_elevation</item> |
| 96 | + <item name="android:checkedTextViewStyle" tools:ignore="NewApi">@style/Widget.Material3.CheckedTextView</item> |
| 97 | + <item name="buttonBarButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item> |
| 98 | + <item name="buttonBarPositiveButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item> |
| 99 | + <item name="buttonBarNegativeButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item> |
| 100 | + <item name="buttonBarNeutralButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item> |
| 101 | + <item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.Material3.Title.Panel</item> |
| 102 | + <item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.Material3.Title.Icon</item> |
| 103 | + <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.Material3.Title.Text</item> |
| 104 | + <item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialog.Material3.Body.Text</item> |
| 105 | + </style> |
| 106 | + |
| 107 | + <!-- A theme overlay for Material3 Alert Dialog panels with a center aligned title text and icon. --> |
| 108 | + <style name="ThemeOverlay.Material3.MaterialAlertDialog.Centered"> |
| 109 | + <item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.Material3.Title.Panel.CenterStacked</item> |
| 110 | + <item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked</item> |
| 111 | + <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.Material3.Title.Text.CenterStacked</item> |
| 112 | + </style> |
| 113 | +</resources> |
0 commit comments