I tracked it down to this commit, but after reading it I still don't understand what does this do other than drawing the button in different colors after clicking.
https://github.com/nesbox/TIC-80/commit/6a19f59b9d00a09b3318e3270194b162c6ca34b0
Does anyone know what does it do? Or is this a WIP feature?