I think that the white backgrounds were added because of how hard it was to see the blue icon against a dark mode background. The viewer is the inconsistent one, but at least has the magnifying glass to make it easier to see.
It isn’t the fix you asked for, but making them consistent does seem like a good idea.