I am changing my app's design infrastructure to Material Design Components and would like to achieve something like this:
This is from toggle button and it shows that a drawable can be colored partially, but there is no implementation example how to achieve this. In my app I have a text formatting toolbar with foreground color and I need to get shown the selected text color exactly in that way.


