How to judge a button is selected with different color?

appium version:v1.13;


just like pic above, if i want to use color to judge a button is selected,what should i do?
cause there’s no relative attribute i’ve found to make it work.