How to save buttons background color

I want it to be possible for someone to see if they have “show user name” enabled or disabled.
I want to set a color on the buttons on their background, I know how to do that but I don’t know how to save it…

243813-capture.png