Python Script to check if the 3D Slicer is in dark or light mode?

Hi, I’m trying to write some code to check if the user’s 3D Slicer application is in either dark or light mode. I’m looking for it in the forum and inside the API docs but I can’t seem to find anything. Thanks in advance!