46,185 questions
I've never looked but I believe the theme is stored in the Settings store along with all the other settings that are configurable. You can use ShellSettingsManager to search for the theme most likely. Here's a really old post on how it used to work but themes have gotten attention since then so it might not work in VS 2019/2022.