Dark Theme at Sunset

by Fran T

Version 20 (December 2, 2023)

Download (341 downloads)

This flow will set your phone to Dark theme at sunset and Light theme at dawn.

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. You can also change the tile text for your non-English language by modifying the block at the top of the flow.

Uses sunrise-sunset.org/api to get today's sunrise and sunset times.

Also see:
🌄 Sunrise and Sunset Actions 🌇
https://llamalab.com/automate/community/flows/38839

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.

Updates:
o Fix for Android tile UI class update
o Fixed solar event delay calculation
o Wait for network connectivity (as when in Airplane mode)
o Added support for Samsung devices
o Improved auto-generated XPaths
o Avoid Location Get exception when device is asleep; improved error recovery; replaced deprecated network blocks
o Updated for Android 14

5.0 average rating from 1 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.