You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, it doesn't actually work, see #29. I suspect that the problem is that we need to be running the main application with NSApplication::run or NSApplicationMain for this to work? But semantically, that probably isn't really something that rust-dark-light should be doing, so unsure what to do.
Even if that isn't the problem, or it can be worked around by using "AppleInterfaceThemeChangedNotification", another problem is that most Rust async runtimes don't support mach ports, and as such wouldn't update since notifications arrive via. those, I think? See madsmtm/objc2#279 for that.
The text was updated successfully, but these errors were encountered:
The current detection mechanism just runs
detect
in a loop, which is woefully inefficient. Details on more efficient implementation options in #37 (comment) and https://github.com/cormacrelf/dark-notify/blob/master/src/app.rs.Also, it doesn't actually work, see #29. I suspect that the problem is that we need to be running the main application with
NSApplication::run
orNSApplicationMain
for this to work? But semantically, that probably isn't really something thatrust-dark-light
should be doing, so unsure what to do.Even if that isn't the problem, or it can be worked around by using
"AppleInterfaceThemeChangedNotification"
, another problem is that most Rust async runtimes don't support mach ports, and as such wouldn't update since notifications arrive via. those, I think? See madsmtm/objc2#279 for that.The text was updated successfully, but these errors were encountered: