i think you will need to manually set the direction of the gradient for each closed shape, with the gradient tool.