How to change the custom button in list view

I want to change the color for this button depending on the field in the document

How I do it?

1 Like