@@ -580,7 +580,7 @@ class MaterialViewThemeUtils
580580 val iconColors =
581581 buildColorStateList(
582582 android.R .attr.state_checked to dynamicColor.onSecondaryContainer().getArgb(scheme),
583- - android.R .attr.state_checked to dynamicColor.surfaceVariant ().getArgb(scheme),
583+ - android.R .attr.state_checked to dynamicColor.onSurfaceVariant ().getArgb(scheme),
584584 android.R .attr.state_focused to dynamicColor.onSecondaryContainer().getArgb(scheme),
585585 android.R .attr.state_hovered to dynamicColor.onSecondaryContainer().getArgb(scheme),
586586 android.R .attr.state_pressed to dynamicColor.onSecondaryContainer().getArgb(scheme)
@@ -589,7 +589,7 @@ class MaterialViewThemeUtils
589589 val textColors =
590590 buildColorStateList(
591591 android.R .attr.state_checked to dynamicColor.onSecondaryContainer().getArgb(scheme),
592- - android.R .attr.state_checked to dynamicColor.surfaceVariant ().getArgb(scheme),
592+ - android.R .attr.state_checked to dynamicColor.onSurfaceVariant ().getArgb(scheme),
593593 android.R .attr.state_hovered to dynamicColor.onSecondaryContainer().getArgb(scheme),
594594 android.R .attr.state_focused to dynamicColor.onSecondaryContainer().getArgb(scheme),
595595 android.R .attr.state_pressed to dynamicColor.onSecondaryContainer().getArgb(scheme)
@@ -640,15 +640,15 @@ class MaterialViewThemeUtils
640640 withScheme(chip.context) { scheme ->
641641 val iconColors =
642642 buildColorStateList(
643- android.R .attr.state_enabled to dynamicColor.surfaceVariant ().getArgb(scheme),
643+ android.R .attr.state_enabled to dynamicColor.onSurfaceVariant ().getArgb(scheme),
644644 - android.R .attr.state_enabled to
645645 colorUtil.adjustOpacity(
646646 dynamicColor.onSurface().getArgb(scheme),
647647 ON_SURFACE_OPACITY_BUTTON_DISABLED
648648 ),
649- android.R .attr.state_focused to dynamicColor.surfaceVariant ().getArgb(scheme),
650- android.R .attr.state_hovered to dynamicColor.surfaceVariant ().getArgb(scheme),
651- android.R .attr.state_pressed to dynamicColor.surfaceVariant ().getArgb(scheme)
649+ android.R .attr.state_focused to dynamicColor.onSurfaceVariant ().getArgb(scheme),
650+ android.R .attr.state_hovered to dynamicColor.onSurfaceVariant ().getArgb(scheme),
651+ android.R .attr.state_pressed to dynamicColor.onSurfaceVariant ().getArgb(scheme)
652652 )
653653
654654 chip.chipStrokeColor = chipOutlineFilterColorList(scheme)
@@ -659,34 +659,34 @@ class MaterialViewThemeUtils
659659
660660 private fun chipOutlineColorList (scheme : DynamicScheme ) =
661661 buildColorStateList(
662- android.R .attr.state_enabled to dynamicColor.outline ().getArgb(scheme),
662+ android.R .attr.state_enabled to dynamicColor.outlineVariant ().getArgb(scheme),
663663 - android.R .attr.state_enabled to
664664 colorUtil.adjustOpacity(
665665 dynamicColor.onSurface().getArgb(scheme),
666666 ON_SURFACE_OPACITY_BUTTON_OUTLINE_DISABLED
667667 ),
668- android.R .attr.state_hovered to dynamicColor.outline ().getArgb(scheme),
669- android.R .attr.state_focused to dynamicColor.surfaceVariant ().getArgb(scheme),
670- android.R .attr.state_pressed to dynamicColor.outline ().getArgb(scheme)
668+ android.R .attr.state_hovered to dynamicColor.outlineVariant ().getArgb(scheme),
669+ android.R .attr.state_focused to dynamicColor.onSurfaceVariant ().getArgb(scheme),
670+ android.R .attr.state_pressed to dynamicColor.outlineVariant ().getArgb(scheme)
671671 )
672672
673673 private fun chipOutlineFilterColorList (scheme : DynamicScheme ) =
674674 buildColorStateList(
675675 android.R .attr.state_checked to dynamicColor.secondaryContainer().getArgb(scheme),
676- - android.R .attr.state_checked to dynamicColor.outline ().getArgb(scheme)
676+ - android.R .attr.state_checked to dynamicColor.outlineVariant ().getArgb(scheme)
677677 )
678678
679679 private fun chipSuggestionInputTextColorList (scheme : DynamicScheme ) =
680680 buildColorStateList(
681- android.R .attr.state_enabled to dynamicColor.surfaceVariant ().getArgb(scheme),
681+ android.R .attr.state_enabled to dynamicColor.onSurfaceVariant ().getArgb(scheme),
682682 - android.R .attr.state_enabled to
683683 colorUtil.adjustOpacity(
684684 dynamicColor.onSurface().getArgb(scheme),
685685 ON_SURFACE_OPACITY_BUTTON_DISABLED
686686 ),
687- android.R .attr.state_hovered to dynamicColor.surfaceVariant ().getArgb(scheme),
688- android.R .attr.state_focused to dynamicColor.surfaceVariant ().getArgb(scheme),
689- android.R .attr.state_pressed to dynamicColor.surfaceVariant ().getArgb(scheme)
687+ android.R .attr.state_hovered to dynamicColor.onSurfaceVariant ().getArgb(scheme),
688+ android.R .attr.state_focused to dynamicColor.onSurfaceVariant ().getArgb(scheme),
689+ android.R .attr.state_pressed to dynamicColor.onSurfaceVariant ().getArgb(scheme)
690690 )
691691
692692 private fun rippleColor (scheme : DynamicScheme ) =
0 commit comments