Last active
May 23, 2022 18:15
-
-
Save andrewodri/08eddaaf433a40374f84c6bdf04f95f3 to your computer and use it in GitHub Desktop.
Force dark mode in High Sierra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.howtogeek.com/fyi/enable-dark-mode-in-high-sierra-sort-of/ | |
# https://medium.com/@n1kk/how-to-tweak-macos-mojave-dark-mode-per-app-a5fab0574691 | |
# https://stackoverflow.com/questions/52562383/is-there-a-way-to-toggle-dark-mode-on-off-for-individual-apps-in-macos-mojave | |
defaults write -g NSWindowDarkChocolate -bool TRUE | |
defaults write -g NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome _NSSystemAppearanceOverride DarkAppearance | |
defaults write com.apple.dt.Xcode _NSSystemAppearanceOverride DarkAppearance | |
# Or, you can use the following for "simulated" dark mode... | |
# Color codes taken from: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/#dynamic-system-colors | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --install-autogenerated-theme "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you don't have Google Chrome installed.