Added in 4.4

$darkmode

Returns $true if DarkMode is currently active, otherwise $false.

See also on DARKMODECHANGED, DarkMode.