Configurable state_color state especially for covers

I would like to control under which state the state_color should take effect. Currently for my covers when I enable state_color:true in my Lovelace card, it colors my cover icon when it’s open. I would like the inverse effect since open is the default state in my house.