To do this, just click on the timeline menu in the upper right corner of the timeline (looks like three horizontal lines with a downward-pointing arrow, at the far end of the frame numbering bar). At the bottom you'll see the "Tinted Frames" option; just check or uncheck this to turn it on and off.

