As macOS 10.14 supports dark mode, it would be very useful to have an event for the appearance change and also a variable for the current appearance. Some snippet code for detecting the current appearance can be found here. The official document suggests
Apps can also use key-value observing (KVO) to monitor changes to the effectiveAppearance property of a view or window and make custom changes. (see here)
I wrote a simple script to change the appearance by running some AppleScript and set the option background accordingly. It would be ideal to have the change of option fired whenever the system changes its appearance.
Or, please suggest where I can put the code. I am not familiar with Obj-C, though.
As macOS 10.14 supports dark mode, it would be very useful to have an event for the appearance change and also a variable for the current appearance. Some snippet code for detecting the current appearance can be found here. The official document suggests
I wrote a simple script to change the appearance by running some AppleScript and set the option
backgroundaccordingly. It would be ideal to have the change of option fired whenever the system changes its appearance.Or, please suggest where I can put the code. I am not familiar with Obj-C, though.