Observe changes for the macOS appearance
inspired by ruiaureliano/macOS-Appearance
scheme:=Get system color scheme
scheme:=Get effective color scheme
-
On Catalina and above, read
NSUserDefaults
AppleInterfaceStyleSwitchesAutomatically
for "auto". -
If not "auto", on Mojave or later, read
NSUserDefaults
AppleInterfaceStyle
for "light" or "dark".
ON APPEARANCE CHANGE CALL(method)
#DECLARE($mode:Text)
$1 is either light or dark