Apple is all set to bring macOS Mojave to the masses later this year which is arguably the biggest update to the Mac desktop operating system. This same OS has one main feature that has been getting most attention since the initial beta release popped up a couple of weeks ago and that indeed is Dark Mode.
That feature has long been requested by Mac users and is finally on the cusp of being available, and it’s easy enough to toggle/turn on and off via the System Preferences pane. It would eventually be great if you could do it via a MacBook Pro’s Touch Bar. There isn’t much also to really use the Touch Bar for, is there?
With the previous version of macOS – had a dark theme, but it was half-baked with no proper system-wide support. In macOS Mojave, Apple added a system-wide Dark mode theme which works with system apps as well as third-party apps.
In order to make this specific brand of magic come to fruition you are going to need to head into the world of Automator. Switching over to the Dark mode on Mojave will lead to not only the system switching to a dark theme but other first-hand apps like Photos, Safari, Notes etc. also using a dark theme. In fact, everything, including the default wallpaper will stitch to a dark theme for that perfect look.
Let’s get started
Step 1: Launch the Automator app on your Mac followed by selecting New Document > Contextual Workflow > Choose.
Step 2: In that Workflow input drop down menu select No Input. You can also select an image to appear in your Touch Bar here, too.
Step 3: Enter Actions search bar – type “Apple” – double click on Run AppleScript.
Step 4: Find the script and delete all that is in there. You need to replace it with the following string in text:
tell application “System Events”
tell appearance preferences
set dark mode to not dark mode
Note: For testing, click the Play button. Dark Mode should be enabled and disabled with each click.
Step 5: Continue! Select File followed by – Save and give the workflow a name. We suggest “Dark Mode”.
Now you are going to create a keyboard shortcut and if you don’t have a Touch Bar-equipped MacBook Pro, this is how you can enable or disable Dark Mode, too.
Step 6: Open System Preferences – Keyboards and finally, the Shortcuts tab.
Step 7: Select Services to look for Dark Mode in the list. Tick the box beside the entry and click Add Shortcut.
Step 8: Enter the keyboard combination of your use. Remember, this needs to be a unique one so you can’t use anything that is already assigned.
That’s it! You can now use the assigned keyboard shortcut to toggle between standard and dark modes on macOS Mojave.
Creating Dark Mode toggle shortcut for MacBook Pro Touch Bar:
Step 1: On MacBook Pro. Head to System Preferences -> Extensions -> Touch Bar.
Step 2: Make sure the Dark Mode workflow is enabled and head back to Keyboard -> Customize Controlstrip.
Step 3: Drag your Dark Mode workflow into the Touch Bar. Done successfully!
Manually Enable Dark Mode in macOS Mojave
Step 1: Head over to System Preferences -> General.
Step 2: Under Appearance, find the option to switch between the Light and Dark system theme.
Notably, if you are not using a custom wallpaper, switching to the Dark theme will also switch to a darker wallpaper.
Once all this is done you will be able to enable or disable Dark Mode at a keystroke or if you own a MacBook Pro with a Touch Bar, at the touch of a button. How’s that?