This might be handy, it will style your ETO form for you.
But if you do want that “GetMode” there is always; HostUtils.RunningInDarkMode
HostUtils.RunningInDarkMode
– cs