Skip to content

Commit c49f961

Browse files
Material Design Teamhunterstich
authored andcommitted
Automated g4 rollback of changelist 458476376
PiperOrigin-RevId: 458490930
1 parent 273554f commit c49f961

File tree

4 files changed

+3
-26
lines changed

4 files changed

+3
-26
lines changed

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

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,18 @@
271271
<item name="android:insetLeft">@dimen/m3_btn_inset</item>
272272
<item name="android:insetRight">@dimen/m3_btn_inset</item>
273273
<item name="iconSize">@dimen/m3_btn_icon_only_default_size</item>
274-
<item name="iconTint">@color/m3_icon_button_icon_color_selector</item>
275274
<item name="iconPadding">@dimen/m3_btn_icon_only_icon_padding</item>
276-
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button.IconButton</item>
277275
</style>
278276

279277
<style name="Widget.Material3.Button.IconButton.Filled">
280278
<item name="backgroundTint">@color/m3_filled_icon_button_container_color_selector</item>
281-
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button.IconButton.Filled</item>
279+
<item name="iconTint">@color/m3_filled_icon_button_icon_color_selector</item>
280+
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button</item>
282281
</style>
283282

284283
<style name="Widget.Material3.Button.IconButton.Filled.Tonal">
285284
<item name="rippleColor">@color/m3_tonal_button_ripple_color_selector</item>
286-
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button.IconButton.Filled.Tonal</item>
285+
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button.TonalButton</item>
287286
</style>
288287

289288
<style name="Widget.Material3.Button.IconButton.Outlined">
@@ -324,19 +323,4 @@
324323
<item name="colorContainer">?attr/colorSurface</item>
325324
</style>
326325

327-
<style name="ThemeOverlay.Material3.Button.IconButton" parent="ThemeOverlay.Material3.Button.TextButton">
328-
<!-- The colors used by the color selectors -->
329-
<item name="colorOnContainerUnchecked">?attr/colorOnSurfaceVariant</item>
330-
</style>
331-
332-
<style name="ThemeOverlay.Material3.Button.IconButton.Filled" parent="ThemeOverlay.Material3.Button">
333-
<!-- The colors used by the color selectors -->
334-
<item name="colorOnContainerUnchecked">?attr/colorPrimary</item>
335-
</style>
336-
337-
<style name="ThemeOverlay.Material3.Button.IconButton.Filled.Tonal" parent="ThemeOverlay.Material3.Button.TonalButton">
338-
<!-- The colors used by the color selectors -->
339-
<item name="colorOnContainerUnchecked">?attr/colorOnSurfaceVariant</item>
340-
</style>
341-
342326
</resources>

lib/java/com/google/android/material/color/res/color/m3_filled_icon_button_container_color_selector.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1818
<!-- Disabled state -->
1919
<item android:color="?attr/colorOnSurface" android:alpha="@dimen/material_emphasis_disabled_background" android:state_enabled="false"/>
20-
<!-- Checkable, unchecked state -->
21-
<item android:color="?attr/colorSurfaceVariant" android:state_checkable="true" android:state_checked="false"/>
2220
<!-- Default, Enabled state -->
2321
<item android:color="?attr/colorContainer"/>
2422
</selector>

lib/java/com/google/android/material/color/res/color/m3_icon_button_icon_color_selector.xml renamed to lib/java/com/google/android/material/color/res/color/m3_filled_icon_button_icon_color_selector.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1818
<!-- Disabled state -->
1919
<item android:color="?attr/colorOnSurface" android:alpha="@dimen/material_emphasis_disabled" android:state_enabled="false"/>
20-
<!-- Checkable, unchecked state -->
21-
<item android:color="?attr/colorOnContainerUnchecked" android:state_checkable="true" android:state_checked="false"/>
2220
<!-- Default, Enabled state -->
2321
<item android:color="?attr/colorOnContainer"/>
2422
</selector>

lib/java/com/google/android/material/color/res/values/attrs.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@
9999
<!-- Color to use for foreground elements on top of colorContainer. -->
100100
<attr name="colorOnContainer" format="color"/>
101101

102-
<!-- Color to use for checkable foreground elements in unchecked state on top of colorContainer. -->
103-
<attr name="colorOnContainerUnchecked" format="color"/>
104-
105102
<!-- The scrim background that appears below modals and expanded navigation menus.
106103
The background can either be a color or a bitmap drawable with tileMode set to repeat. -->
107104
<attr name="scrimBackground" format="color|reference"/>

0 commit comments

Comments
 (0)