Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the Cast Dialog's "Stop Casting" button color?

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>
like image 570
Jonathan Menard Avatar asked Nov 27 '25 23:11

Jonathan Menard


1 Answers

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.

  • App theme (light or dark): main theme of the dialog
  • Primary color: the background color of the controller
  • Accent color: the text color of "STOP CASTING" (this can be overridden by primary color in certain case)
like image 142
The Finest Artist Avatar answered Nov 29 '25 17:11

The Finest Artist