Skip to content

Commit fdbd553

Browse files
dsn5ftafohrman
authored andcommitted
Set ActionMode background in Primary and Surface theme overlays
PiperOrigin-RevId: 234791713
1 parent 76a9b23 commit fdbd553

File tree

1 file changed

+4
-0
lines changed
  • lib/java/com/google/android/material/appbar/res/values

1 file changed

+4
-0
lines changed

lib/java/com/google/android/material/appbar/res/values/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
<item name="colorControlNormal">?attr/colorOnPrimary</item>
120120
<!-- Counteracts the effect of setting textColorPrimary for popup menus. -->
121121
<item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item>
122+
<!-- Used to tint the ActionMode background and preserve the underline. -->
123+
<item name="android:colorBackground">?attr/colorPrimary</item>
122124
</style>
123125

124126
<style name="ThemeOverlay.MaterialComponents.ActionBar.Surface" parent="">
@@ -128,6 +130,8 @@
128130
<item name="colorControlNormal">?attr/colorOnSurfaceEmphasisMedium</item>
129131
<!-- Counteracts the effect of setting textColorPrimary for popup menus. -->
130132
<item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item>
133+
<!-- Used to tint the ActionMode background and preserve the underline. -->
134+
<item name="android:colorBackground">?attr/colorSurface</item>
131135
</style>
132136

133137
</resources>

0 commit comments

Comments
 (0)