by Fran T
Turns on the Dark theme (Night Mode) when the battery level reaches the limit you set. Unlike the Battery Saver, only the dark theme is set; the CPU speed and screen timeout remain unaffected. The flow also works in conjunction with any Dark theme schedule you may have set, such as "On at sunset".
Works with or without root permission. Without root, in order to be able to turn the Dark theme on and off, its tile must be present in Quick Settings. To see if it is, expand the status bar by swiping down twice, and possibly sideways. If the 'Dark theme' tile isn't present, tap the EDIT or “pen” button, then drag the tile to add it. The flow will check this for you and display a message explaining how to add the tile if it's not set up. You can also change the tile text for your non-English language by modifying the block at the top of the flow.
Note: If you notice an exception in the log, that's normal and is the way the flow determines whether the non-root UI workaround is needed to set the theme. The flow continues to run normally.