Skip to content

Commit 8342f90

Browse files
drchendsn5ft
authored andcommitted
[M3][Dialog] Add date and time picker themes to M3 dialog themes
Also moves all theme overlays to separate files for internal building purpose. PiperOrigin-RevId: 421385265
1 parent 698cf9b commit 8342f90

File tree

6 files changed

+141
-112
lines changed

6 files changed

+141
-112
lines changed

lib/java/com/google/android/material/dialog/res/values-v21/styles.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,4 @@
1717
<resources>
1818
<!-- Styles for MaterialComponents Dialogs. -->
1919
<style name="Base.Widget.MaterialComponents.CheckedTextView" parent="android:Widget.Material.CheckedTextView"/>
20-
<style name="Base.ThemeOverlay.MaterialComponents.Dialog" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog">
21-
<item name="android:windowBackground">@drawable/mtrl_dialog_background</item>
22-
</style>
2320
</resources>

lib/java/com/google/android/material/dialog/res/values-v21/themes_base.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
limitations under the License.
1616
-->
1717
<resources>
18-
<!-- MaterialComponents ThemeOverlays for Framework Alert Dialogs. -->
19-
20-
<style name="Base.ThemeOverlay.MaterialComponents.Dialog.Alert.Framework" parent="@android:style/Theme.Material.Dialog.Alert">
21-
<item name="android:buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
22-
</style>
23-
24-
<style name="Base.ThemeOverlay.MaterialComponents.Light.Dialog.Alert.Framework" parent="@android:style/Theme.Material.Light.Dialog.Alert">
25-
<item name="android:buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
26-
</style>
27-
2818
<!-- Themes V21 and above specify an android:alertDialogTheme so that text
2919
buttons are used instead of filled buttons. The android:alertDialogTheme
3020
used by default by the framework pre-21 is not public and therefore we

lib/java/com/google/android/material/dialog/res/values-v21/themes.xml renamed to lib/java/com/google/android/material/dialog/res/values-v21/themes_overlay.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
Copyright 2020 The Android Open Source Project
3+
Copyright 2022 The Android Open Source Project
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,6 +15,9 @@
1515
limitations under the License.
1616
-->
1717
<resources>
18+
<style name="Base.ThemeOverlay.MaterialComponents.Dialog" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog">
19+
<item name="android:windowBackground">@drawable/mtrl_dialog_background</item>
20+
</style>
1821

1922
<!--
2023
The default theme overlay used by Material3 for framework
@@ -31,6 +34,17 @@
3134
<item name="android:buttonBarButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item>
3235
</style>
3336

37+
<!--
38+
MaterialComponents ThemeOverlays for Framework Alert Dialogs.
39+
-->
40+
<style name="Base.ThemeOverlay.MaterialComponents.Dialog.Alert.Framework" parent="@android:style/Theme.Material.Dialog.Alert">
41+
<item name="android:buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
42+
</style>
43+
44+
<style name="Base.ThemeOverlay.MaterialComponents.Light.Dialog.Alert.Framework" parent="@android:style/Theme.Material.Light.Dialog.Alert">
45+
<item name="android:buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
46+
</style>
47+
3448
<!--
3549
The default theme overlay used by MaterialComponents for framework
3650
(non-AppCompat) alert dialogs, via the android:alertDialogTheme attribute.

lib/java/com/google/android/material/dialog/res/values/themes.xml

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
~ See the License for the specific language governing permissions and
1515
~ limitations under the License.
1616
-->
17-
<resources xmlns:tools="http://schemas.android.com/tools">
17+
<resources>
1818
<!-- Themes for MaterialComponents Dialogs. -->
1919

2020
<!--
@@ -53,34 +53,6 @@
5353

5454
<style name="Theme.MaterialComponents.Light.Dialog.FixedSize" parent="Base.Theme.MaterialComponents.Light.Dialog.FixedSize"/>
5555

56-
<!--
57-
The default theme overlay used by MaterialComponents for regular dialogs.
58-
-->
59-
<style name="ThemeOverlay.MaterialComponents.Dialog" parent="Base.ThemeOverlay.MaterialComponents.Dialog"/>
60-
61-
<!--
62-
The default MaterialComponents theme overlay used for AlertDialogs built via the
63-
alertDialogTheme attribute.
64-
-->
65-
<style name="ThemeOverlay.MaterialComponents.Dialog.Alert" parent="Base.ThemeOverlay.MaterialComponents.Dialog.Alert"/>
66-
67-
<!--
68-
The default MaterialComponents theme overlay for AlertDialogs built with the MaterialAlertDialogBuilder, via the
69-
materialAlertDialogTheme attribute.
70-
-->
71-
<style name="ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog">
72-
<item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Panel</item>
73-
<item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Icon</item>
74-
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Text</item>
75-
</style>
76-
77-
<!-- A theme overlay for MaterialComponents Alert Dialog panels with a center aligned title text and icon. -->
78-
<style name="ThemeOverlay.MaterialComponents.MaterialAlertDialog.Centered" parent="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog">
79-
<item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Panel.CenterStacked</item>
80-
<item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Icon.CenterStacked</item>
81-
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.MaterialComponents.Title.Text.CenterStacked</item>
82-
</style>
83-
8456
<!-- Themes for M3 Dialogs. -->
8557

8658
<!--
@@ -125,40 +97,4 @@
12597
<item name="windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
12698
</style>
12799

128-
<style name="ThemeOverlay.Material3.Dialog" parent="Base.ThemeOverlay.Material3.Dialog"/>
129-
130-
<!--
131-
The default Material3 theme overlay used for AlertDialogs built via the
132-
alertDialogTheme attribute.
133-
-->
134-
<style name="ThemeOverlay.Material3.Dialog.Alert" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
135-
<item name="buttonBarButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item>
136-
<item name="android:windowElevation" tools:ignore="NewApi">@dimen/m3_alert_dialog_elevation</item>
137-
</style>
138-
139-
<!--
140-
The default Material3 theme overlay for AlertDialogs built with the MaterialAlertDialogBuilder, via the
141-
materialAlertDialogTheme attribute.
142-
-->
143-
<style name="ThemeOverlay.Material3.MaterialAlertDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
144-
<item name="alertDialogStyle">@style/MaterialAlertDialog.Material3</item>
145-
<item name="android:windowElevation" tools:ignore="NewApi">@dimen/m3_alert_dialog_elevation</item>
146-
<item name="android:checkedTextViewStyle" tools:ignore="NewApi">@style/Widget.Material3.CheckedTextView</item>
147-
<item name="buttonBarButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item>
148-
<item name="buttonBarPositiveButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item>
149-
<item name="buttonBarNegativeButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog</item>
150-
<item name="buttonBarNeutralButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item>
151-
<item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.Material3.Title.Panel</item>
152-
<item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.Material3.Title.Icon</item>
153-
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.Material3.Title.Text</item>
154-
<item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialog.Material3.Body.Text</item>
155-
</style>
156-
157-
<!-- A theme overlay for Material3 Alert Dialog panels with a center aligned title text and icon. -->
158-
<style name="ThemeOverlay.Material3.MaterialAlertDialog.Centered">
159-
<item name="materialAlertDialogTitlePanelStyle">@style/MaterialAlertDialog.Material3.Title.Panel.CenterStacked</item>
160-
<item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked</item>
161-
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.Material3.Title.Text.CenterStacked</item>
162-
</style>
163-
164100
</resources>

lib/java/com/google/android/material/dialog/res/values/themes_base.xml

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@
208208
<item name="alertDialogTheme">@style/ThemeOverlay.Material3.Dialog.Alert</item>
209209
<item name="materialAlertDialogTheme">@style/ThemeOverlay.Material3.MaterialAlertDialog</item>
210210

211+
<!-- Picker styles and themes. -->
212+
<item name="materialCalendarStyle">@style/Widget.Material3.MaterialCalendar</item>
213+
<item name="materialCalendarFullscreenTheme">@style/ThemeOverlay.Material3.MaterialCalendar.Fullscreen</item>
214+
<item name="materialCalendarTheme">@style/ThemeOverlay.Material3.MaterialCalendar</item>
215+
<item name="materialTimePickerTheme">@style/ThemeOverlay.Material3.MaterialTimePicker</item>
216+
211217
<!-- Theme overlays. -->
212218
<item name="dynamicColorThemeOverlay">@style/ThemeOverlay.Material3.DynamicColors.Light</item>
213219
</style>
@@ -401,17 +407,19 @@
401407
<item name="alertDialogTheme">@style/ThemeOverlay.Material3.Dialog.Alert</item>
402408
<item name="materialAlertDialogTheme">@style/ThemeOverlay.Material3.MaterialAlertDialog</item>
403409

410+
<!-- Picker styles and themes. -->
411+
<item name="materialCalendarStyle">@style/Widget.Material3.MaterialCalendar</item>
412+
<item name="materialCalendarFullscreenTheme">@style/ThemeOverlay.Material3.MaterialCalendar.Fullscreen</item>
413+
<item name="materialCalendarTheme">@style/ThemeOverlay.Material3.MaterialCalendar</item>
414+
<item name="materialTimePickerTheme">@style/ThemeOverlay.Material3.MaterialTimePicker</item>
415+
404416
<!-- Theme overlays. -->
405417
<item name="dynamicColorThemeOverlay">@style/ThemeOverlay.Material3.DynamicColors.Dark</item>
406418
</style>
407419

408420
<style name="Base.Theme.Material3.Light.Dialog" parent="Base.V14.Theme.Material3.Light.Dialog"/>
409421
<style name="Base.Theme.Material3.Dark.Dialog" parent="Base.V14.Theme.Material3.Dark.Dialog"/>
410422

411-
<style name="Base.ThemeOverlay.Material3.Dialog" parent="Base.ThemeOverlay.MaterialComponents.Dialog">
412-
<item name="materialButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog.Flush</item>
413-
</style>
414-
415423
<style name="Base.V14.Theme.MaterialComponents.Dialog" parent="Base.V14.Theme.MaterialComponents.Dialog.Bridge">
416424
<item name="viewInflaterClass">com.google.android.material.theme.MaterialComponentsViewInflater</item>
417425

@@ -516,30 +524,6 @@
516524
<item name="textAppearanceSmallPopupMenu">?attr/textAppearanceSubtitle1</item>
517525
</style>
518526

519-
<style name="Base.V14.ThemeOverlay.MaterialComponents.Dialog" parent="ThemeOverlay.AppCompat.Dialog">
520-
<!-- Widget styles -->
521-
<item name="materialButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
522-
</style>
523-
524-
<style name="Base.V14.ThemeOverlay.MaterialComponents.Dialog.Alert" parent="ThemeOverlay.AppCompat.Dialog.Alert">
525-
<!-- Widget styles -->
526-
<item name="buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
527-
</style>
528-
529-
<style name="Base.V14.ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="ThemeOverlay.AppCompat.Dialog.Alert">
530-
<!-- Widget styles -->
531-
<item name="materialAlertDialogButtonSpacerVisibility">@integer/mtrl_view_invisible</item>
532-
<item name="alertDialogStyle">@style/MaterialAlertDialog.MaterialComponents</item>
533-
<item name="android:checkedTextViewStyle" tools:ignore="NewApi">@style/Widget.MaterialComponents.CheckedTextView</item>
534-
<item name="android:dialogCornerRadius" tools:ignore="newApi">@null</item>
535-
<item name="buttonBarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item>
536-
<item name="buttonBarPositiveButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item>
537-
<item name="buttonBarNegativeButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog</item>
538-
<item name="buttonBarNeutralButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush</item>
539-
<item name="android:backgroundDimAmount">0.32</item>
540-
<item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialog.MaterialComponents.Body.Text</item>
541-
</style>
542-
543527
<!-- Themes in the "Base.Theme" family vary based on the current platform
544528
version to provide the correct basis on each device. You probably don't
545529
want to use them directly in your apps.
@@ -585,9 +569,4 @@
585569
<item name="windowFixedHeightMajor">@dimen/abc_dialog_fixed_height_major</item>
586570
<item name="windowFixedHeightMinor">@dimen/abc_dialog_fixed_height_minor</item>
587571
</style>
588-
589-
<style name="Base.ThemeOverlay.MaterialComponents.Dialog" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog"/>
590-
<style name="Base.ThemeOverlay.MaterialComponents.Dialog.Alert" parent="Base.V14.ThemeOverlay.MaterialComponents.Dialog.Alert"/>
591-
<style name="Base.ThemeOverlay.MaterialComponents.MaterialAlertDialog" parent="Base.V14.ThemeOverlay.MaterialComponents.MaterialAlertDialog"/>
592-
593572
</resources>
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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

Comments
 (0)