I think in that case you will have to get creative. Keep the CheckBox hidden on the Gallery control i.e. Visible=False.
In the OnSelect of the button, toggle the value of CheckBox control. Rest of the functionality should be as I explained in my previous response i.e. set the Color property on based on CheckBox.value. That should work as per your requirement.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.