Making custom icon invert color when object selected

Sorry, I ignored you that you were using roller, Now I know how to invert color of selected text, just by setting bg_color text_color and bg_opa style.