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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user