In cast v3, how can I change the color of the "Stop Casting" button manually?
I am able to change the styling for the Cast Dialog or Media Router for everything else, but the "Stop Casting" button seems to switch to black / blue depending on what background color is.
My theme:
<style name="CustomMediaRouterTheme" parent="Theme.MediaRouter">
<!-- Other elements here -->
<item name="mediaRouteButtonStyle">@style/CustomMediaRouteButtonStyle</item>
<item name="colorBackgroundFloating">@color/colorTertiaryDark</item>
</style>
You have to update your theme. The "STOP CASTING" button follows the accent color of your activity theme and the background color of controller part follows the primary color of your activity theme. But, sometimes the primary color is used as the "STOP CASTING" button color. It depends on the app theme (light or dark) and primary color. If the primary color is distinguishable, seems like the accent color get overridden.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With