Change colour inline action button is used when child table is updated

I made an action in an attendance app in a list UX-view from all attendees.

By clicking on an icon-action a trigger is set to update the child record with a recordID, parentID and today(). The records have to be updated with a synch for each attendee.
The result is that we can see who and how many people came to the trainingsession.

What I want is that the colour of the action button changes after it has been touched.
From blue to green for example before all records are updated.

Is this possible?
With select(table, field etc) I did not succeed.