有没有办法在 MacOs Mojave 中为单个应用程序打开/关闭暗模式?

Dav*_*d M 2 macos macos-mojave macos-darkmode

终端中有没有办法在不影响其他环境的情况下为单个应用程序打开/关闭暗模式?我在 Mac 上使用日历,外观很糟糕。其余应用程序在黑暗模式下看起来很棒。我只想为那个应用程序禁用它。

The*_*man 6

Terminal,运行以下命令:

defaults write com.apple.iCal NSRequiresAquaSystemAppearance true
Run Code Online (Sandbox Code Playgroud)

要还原更改:

defaults write com.apple.iCal NSRequiresAquaSystemAppearance false
Run Code Online (Sandbox Code Playgroud)

  • 要恢复,您应该执行`defaults delete com.apple.iCal NSRequiresAquaSystemAppearance`。 (5认同)
  • 要查找应用程序的捆绑标识符,例如 Mail.app,请使用 `/usr/libexec/PlistBuddy -c "p​​rint :CFBundleIdentifier" /Applications/Mail.app/Contents/Info.plist` (2认同)
  • 包标识符也可以通过以下方式查找:`osascript -e 'id of app "<App-Name>"'` (2认同)