Skip to content

Add an event for macOS appearance change  #766

@L-TChen

Description

@L-TChen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions