Skip to content

Commit

Permalink
[M3][ActionBar] Migrate action bar popup themes to M3
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 417454499
  • Loading branch information
drchen authored and leticiarossi committed Dec 20, 2021
1 parent 9416b2c commit 2ae3ca4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
<item name="android:textColorAlertDialogListItem">@color/m3_default_color_primary_text</item>

<!-- Widget styles. -->
<item name="actionBarStyle">@style/Widget.Material3.Light.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
<item name="badgeStyle">@style/Widget.Material3.Badge</item>
<item name="borderlessButtonStyle">@style/Widget.Material3.Button.TextButton</item>
Expand Down Expand Up @@ -129,10 +127,15 @@
<item name="toolbarSurfaceStyle">@style/Widget.Material3.Toolbar.Surface</item>

<!-- Top App Bars. -->
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="collapsingToolbarLayoutMediumSize">@dimen/m3_appbar_size_medium</item>
<item name="collapsingToolbarLayoutLargeSize">@dimen/m3_appbar_size_large</item>

<!-- Action Bars. -->
<item name="actionBarPopupTheme">@style/ThemeOverlay.Material3.Light</item>
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="actionBarStyle">@style/Widget.Material3.Light.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>

<!-- Popup Menu styles. -->
<item name="popupMenuBackground">@drawable/m3_popupmenu_background_overlay</item>
<item name="listPopupWindowStyle">@style/Widget.Material3.PopupMenu.ListPopupWindow</item>
Expand Down Expand Up @@ -255,8 +258,6 @@
<item name="android:textColorAlertDialogListItem">@color/m3_dark_default_color_primary_text</item>

<!-- Widget styles. -->
<item name="actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
<item name="badgeStyle">@style/Widget.Material3.Badge</item>
<item name="borderlessButtonStyle">@style/Widget.Material3.Button.TextButton</item>
Expand Down Expand Up @@ -315,10 +316,15 @@
<item name="toolbarSurfaceStyle">@style/Widget.Material3.Toolbar.Surface</item>

<!-- Top App Bars. -->
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="collapsingToolbarLayoutMediumSize">@dimen/m3_appbar_size_medium</item>
<item name="collapsingToolbarLayoutLargeSize">@dimen/m3_appbar_size_large</item>

<!-- Action Bars. -->
<item name="actionBarPopupTheme">@style/ThemeOverlay.Material3.Dark</item>
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>

<!-- Popup Menu styles. -->
<item name="popupMenuBackground">@drawable/m3_popupmenu_background_overlay</item>
<item name="listPopupWindowStyle">@style/Widget.Material3.PopupMenu.ListPopupWindow</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@
<item name="materialTimePickerTheme">@style/ThemeOverlay.Material3.MaterialTimePicker</item>

<!-- Widget styles. -->
<item name="actionBarStyle">@style/Widget.Material3.Light.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
<item name="badgeStyle">@style/Widget.Material3.Badge</item>
<item name="borderlessButtonStyle">@style/Widget.Material3.Button.TextButton</item>
Expand Down Expand Up @@ -140,10 +138,15 @@
<item name="toolbarSurfaceStyle">@style/Widget.Material3.Toolbar.Surface</item>

<!-- Top App Bars. -->
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="collapsingToolbarLayoutMediumSize">@dimen/m3_appbar_size_medium</item>
<item name="collapsingToolbarLayoutLargeSize">@dimen/m3_appbar_size_large</item>

<!-- Action Bars. -->
<item name="actionBarPopupTheme">@style/ThemeOverlay.Material3.Light</item>
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="actionBarStyle">@style/Widget.Material3.Light.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>

<!-- Popup Menu styles. -->
<item name="popupMenuBackground">@drawable/m3_popupmenu_background_overlay</item>
<item name="listPopupWindowStyle">@style/Widget.Material3.PopupMenu.ListPopupWindow</item>
Expand Down Expand Up @@ -271,8 +274,6 @@
<item name="materialTimePickerTheme">@style/ThemeOverlay.Material3.MaterialTimePicker</item>

<!-- Widget styles. -->
<item name="actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
<item name="badgeStyle">@style/Widget.Material3.Badge</item>
<item name="borderlessButtonStyle">@style/Widget.Material3.Button.TextButton</item>
Expand Down Expand Up @@ -331,10 +332,15 @@
<item name="toolbarSurfaceStyle">@style/Widget.Material3.Toolbar.Surface</item>

<!-- Top App Bars. -->
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="collapsingToolbarLayoutMediumSize">@dimen/m3_appbar_size_medium</item>
<item name="collapsingToolbarLayoutLargeSize">@dimen/m3_appbar_size_large</item>

<!-- Action Bars. -->
<item name="actionBarPopupTheme">@style/ThemeOverlay.Material3.Dark</item>
<item name="actionBarSize">@dimen/m3_appbar_size_compact</item>
<item name="actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
<item name="actionModeStyle">@style/Widget.Material3.ActionMode</item>

<!-- Popup Menu styles. -->
<item name="popupMenuBackground">@drawable/m3_popupmenu_background_overlay</item>
<item name="listPopupWindowStyle">@style/Widget.Material3.PopupMenu.ListPopupWindow</item>
Expand Down

0 comments on commit 2ae3ca4

Please sign in to comment.