I love Xcode 10 dark theme, but I'd like to keep the whole OS on light theme. But by default to have Xcode on Dark theme you have to set the whole OS to Dark.
How can I achieve this?
Open Terminal and run the following:
defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool FALSE
osascript -e 'id of app "SomeApp"'
from this answer: stackoverflow.com/a/39464824/6411857
Commented
Jan 4, 2022 at 20:55
1) First ensure you have the appropriate system setup:
defaults write -g NSRequiresAquaSystemAppearance -bool Yes
2) Then use:
defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool FALSE
Enjoy!
You can also configure any other app by knowing its BundleID. For example:
com.apple.AppStore
com.apple.iCal
com.apple.mail
com.apple.Maps
com.apple.Notes
com.apple.Safari
To restore defaults:
defaults delete -g NSRequiresAquaSystemAppearance
You can use nightowl app to enable dark mode only for Xcode
sh brew cask install gray
Commented
Jan 1, 2020 at 10:43
NSRequiresAquaSystemAppearance
option that others have suggested, which doesn't seem to work anymore. That method also has the above shortcoming.
Commented
Jan 2, 2020 at 23:46
There didn't seem to be anything that can be done using preferences and such, so I made a plugin for that: https://github.com/grishka/XcodeAppearanceSwitcher
On iOS you can
Temporarily opt out by including the UIUserInterfaceStyle key (with a value of Light) in your app’s Info.plist file