With the Google Pixel 2, Google added a partial system dark theme that gets applied when you have a dark-colored wallpaper. That feature came to the original Google Pixel and other devices with the Android 8.1 Oreo update and with the latest Android P Beta 3/Developer Preview 4, you no longer need to have a dark-colored wallpaper to use the dark theme. If you’ve ever wanted to make the dark mode a bit smarter, we figured out how to automate it so you can apply any condition before it’s enabled. The best part is it doesn’t require root!
For reference, the dark theme only themes parts of the SystemUI and Google Pixel Launcher such as the quick settings panel, volume panel, folder background, and app drawer background. The only way to get a full system-wide dark theme is to either remain on Android Oreo and use a Substratum theme or to root your Android P device to use Substratum. We realize that rooting your device isn’t something that some of you may want to do, so we’re always looking for customization options that don’t require root. Thanks to the latest Android P beta, it’s now possible to automate when the dark theme is applied so, for example, we can enable the dark mode only when Night Light is on.
A brief explanation on what we’re doing. The latest Android P beta allows you to manually toggle the dark theme in Display settings. As such, a new Settings.Secure value was made by Google to hold the current value of this setting (Settings.Secure.theme_mode where 0 is automatic based on wallpaper, 1 is the light theme, and 2 is the dark theme.) Changing this value manually via ADB or with an application with the right permission allows us to change the theme. Using the latest Tasker beta version which allows us to monitor for changes in settings, we can monitor the Night Light state and then toggle the theme change at will.
Here are step-by-step instructions on how to set it up. At the end, I will also include a link to import it.
Click here to import the Profile above. Note: this is using Tasker’s new URL import/export feature which is only available on the latest Tasker beta. The Profile won’t work if you’re not on the latest Tasker beta anyways.