Android 10 has finally arrived to all generations of Google Pixel devices, including the Pixel 3a series. To everyone’s disappointment, the option to schedule the much-awaited Dark Theme is not yet in the public version of Android.
If you have been following me on Twitter, you are most likely already aware of this, but this was one of my most anticipated feature to see on Android for a very long time – and if you’re reading this, chances are… yours too.
So, while I have so far been unable to fully replicate a proper feature to toggle Dark Theme at the same time as Night Light, I have managed to work out something that ‘will do’ for the time being.
UPDATE!
Here’s a proper solution! Kudos to u/andyooo for the suggestion!
You may need to use ADB to give permission to write secure settings. XDA has all the commands in the ‘Requirements’ https://www.xda-developers.com/enable-android-p-dark-theme-night-light/
For this solution to work, you’ll have to set up 2 different profiles, let’s start with the first one.
- Make a new profile and call it “Dark theme On”
- Choose the State context
- Pick the System category
- Select the Custom Setting option
- For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.
Next
- Enter the Task creator (it’s not necessary to give it a name)
- Add an Action
- Pick “Custom Setting”
- For the Type, pick “Secure”. For the Name, enter “ui_night_mode”. For the Value, enter “2”.
- Add another Action
- Pick “Car Mode” -> For the Set, pick “On”
- Add another Action
- Pick “Car Mode” -> For the Set, pick “Off” – By turning Driving mode On and Off, it will trigger Dark Theme to toggle
- Exit out
Next Profile – basically the same steps, except, we’ll have to disable all of the settings created above
- Make a new profile and call it “Dark theme Off”
- Choose the State context
- Pick the System category
- Select the Custom Setting option
- For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.
- Make sure to Tick the “Invert” box!
Next
- Enter the Task creator (it’s not necessary to give it a name)
- Add an Action
- Pick “Custom Setting” 4. For the Type, pick “Secure”. For the Name, enter “ui_night_mode”. For the Value, enter “1”.
- Add another Action 6. Pick “Car Mode” -> For the Set, pick “On”
- Add another Action
- Pick “Car Mode” -> For the Set, pick “Off” – By turning Driving mode On and Off, it will trigger Dark Theme to toggle
- Exit out
You now have Dark theme that works based on when Night Light is enabled!
Original article as follows:
With this, whenever Night Light is enabled the Battery Saver will also toggle on, forcing the Dark Theme to appear practically everywhere in the system and in supported applications.
-
Make a new profile and call it “Dark theme”
-
Choose the State context
-
Pick the System category
-
Select the Custom Setting option
-
For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.
Next
-
Enter the Task creator (it’s not necessary to give it a name)
-
Add an Action
-
Pick System -> Power Mode
-
For the Mode, select “Toggle”
-
Exit out