The widget contains a swiich style so you can change the color. Or you can use CSS to style the switch.
Regards,
Ronald
[edit]
Goto the properties Common / Style
Hi, See this can be helpful to style the toggle
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_switch