Background color changes during activity

I noticed that the background color of the data fields changes from black to white and back during an activity. Seemingly random.

What's up with that?