Modify SVGGenerator to accept a theme argument from current UI. (#13245)

Change-Id: I8a5198e42c894105fff42a806e9b8a2ac2a62085