Fix chip selection color green with correct color selector approach

- Replace broken chipBackground theme style with a color state-list
  selector (res/color/chip_duration_bg.xml) using chipBackgroundColor
  attribute directly on each Chip
- Green (#81C784) when checked, light gray (#E8E8E8) when unchecked
- Add minWidth="56dp" to give chips proper width

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 11:40:32 -07:00
co-authored by Claude Opus 4.7
parent 5b517f39d6
commit df9d92f116
4 changed files with 13 additions and 20 deletions
-5
View File
@@ -5,11 +5,6 @@
<item name="colorSecondary">@color/md_theme_light_secondary</item>
<item name="android:statusBarColor">@color/color_gradient_start</item>
<item name="android:windowLightStatusBar">true</item>
<item name="chipStyle">@style/ChipDuration</item>
</style>
<style name="ChipDuration" parent="Widget.Material3.Chip.Suggestion.Elevated">
<item name="chipBackground">@drawable/chip_duration_bg</item>
</style>
<color name="md_theme_light_primary">#2E7D32</color>