Closed zwimer closed 1 year ago
Add a naive macOS listener.
Small demo, toggling mode after starting thread:
>>> import darkdetect >>> import threading >>> t=threading.Thread(target=darkdetect.listener, args=(print,)) >>> t.start() >>> Dark Light >>> >>> [1] 13336 quit python3
Adds naive support for: https://github.com/albertosottile/darkdetect/issues/25
Closing this for the reasons mentioned in https://github.com/albertosottile/darkdetect/issues/25#issuecomment-1332795474.
Add a naive macOS listener.
Small demo, toggling mode after starting thread: