背景

Mojave 深色模式下,打开很多软件都是深色主题。

Chrome 为例,

如果通过引入亮色皮肤插件的方式,不能完全解决

故寻找其他解决方案。

解决方式

$ osascript -e 'id of app "Google Chrome"'
// com.google.Chrome
$ defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool yes
  1. 重启 Chrome
  2. (恢复默认)
$ defaults delete com.google.Chrome NSRequiresAquaSystemAppearance

参考

  • https://fankcoder.com/2019/04/28/tool-2019-04-28-fix-chrome-darkmode/