Sublime Forum

Please use NSApplication.effectiveAppearance to query dark mode status

#1

Sublime Text seems to query the “AppleInterfaceStyle” user default and respond to appearance changes via the “AppleInterfaceThemeChangedNotification” notification. These are not API and their use should be avoided in favor of observing NSApplication.effectiveAppearance, especially since it provides incorrect results when the “Auto” system appearance setting is in effect.

0 Likes

#2

If this is the case, you may want to create an issue over on their issue tracker: https://github.com/sublimehq/sublime_text/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc.

0 Likes

#3

Ooh, thanks for the pointer. I’ll file an issue there.

0 Likes