Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Last active May 23, 2022 18:15
Show Gist options
  • Select an option

  • Save andrewodri/08eddaaf433a40374f84c6bdf04f95f3 to your computer and use it in GitHub Desktop.

Select an option

Save andrewodri/08eddaaf433a40374f84c6bdf04f95f3 to your computer and use it in GitHub Desktop.

Revisions

  1. Andrew Odri revised this gist Oct 4, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -10,3 +10,8 @@ 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 ""
  2. Andrew Odri revised this gist Jul 26, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -7,3 +7,6 @@
    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
  3. Andrew Odri revised this gist Jul 26, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    #!/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
  4. Andrew Odri created this gist Jul 18, 2019.
    7 changes: 7 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash

    # 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 NSRequiresAquaSystemAppearance -bool FALSE
    defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool FALSE