Closed justijndepover closed 7 years ago
Why? Can you elaborate on the use-case? :)
Your code contains an error if you set the mode to Light or Dark. Once you've set a specific mode with your program, and you try to change it via system preferences, it leaves your system in a mixed state (hence the following issue: https://github.com/sindresorhus/dark-mode/issues/3)
With the added reset you can change the mode back to normal (before it was broken)
I appreciate the pull request, but I went with fixing the problem for real. See: https://github.com/sindresorhus/dark-mode/releases/tag/2.0.0
Thank god, the panda.app works. Hope I didn't install this tool from homebrew.
Added an argument to remove the defaults AppleInterfaceStyle key.