Let's start with day 1 for now. Try the following:
Add the following code to the screen OnVisible property:
UpdateContext({locDay01Mode:"NoAccident"});
Select the day 1 button and add the following code to the Fill property:
Switch(locDay01Mode,
"NoAccident", Color.Green,
"NearAccident", Color.Orange,
"Accident", Color.Red
)
Try changing the value of locDay01Mode to "NoAccident", "NearAccident", and "Accident" to see the button colour change.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Follow me online.