I am changing color of MaterialTimePicker buttons text by changing colorPrimary of my time picker style. But when I change colorPrimary - chip in selected state also changes it's color.
What I want to achive is to make Ok and Cancel buttons text white, and selected chip leave Blue. On the screen my colorPrimary is Blue.
Is there a way to change buttons text color independently?
<style name="TimePicker" parent="@style/ThemeOverlay.MaterialComponents.TimePicker">
<item name="colorPrimary">@color/blue</item>
<item name="colorSurface">@color/dark_grey</item>
<item name="colorOnSurface">@color/light_grey</item>
<item name="colorOnPrimary">@color/white</item>
<item name="colorOnSecondary">@color/colorAccent</item>
<item name="chipStyle">@style/chipStyle</item>
<item name="materialClockStyle">@style/clockStyle</item>
<item name="imageButtonStyle">@style/Widget.MaterialComponents.TimePicker.ToggleButton</item>
</style>
<style name="chipStyle" parent="Widget.MaterialComponents.TimePicker.Display">
<item name="android:textColor">@color/selector_time_picker_chip_text_color</item>
</style>
