macOS Mojave macOS开发 APP禁用深色模式

参考苹果官方文档:
https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app

If you need extra time to work on your app's Dark Mode support, you can temporarily opt out by including the NSRequiresAquaSystemAppearance key (with a value of true) in your app’s Info.plist file. Setting this key to true causes the system to ignore the user's preference and always apply a light appearance to your app.

即在应用程序的Info.plist文件中添加NSRequiresAquaSystemAppearance键、值设置为true保存退出。

你可能感兴趣的:(macOS Mojave macOS开发 APP禁用深色模式)