I am using a Google Pixel 6a running Android 14QPR2 beta 3. I created a battery widget that that looks like the one already built in Android but with rounder corners.
I added global variables for the colors of the elements. For each element, I made two color variables one for light mode and one for dark mode. I did this using variations of $si(sysca1, x)$ and $si(sysca2, y) In the elements paint formula I put $if(si(darkmode)=1, gv(dcolor), gv(lcolor))$. I did this for all the elements and the widget does work in the editor and updates its colors as expected.
But that’s it. It refuses to update the colors when I place the widget on the home screen.
- Battery usage is unrestricted in app settings.
- I have tried all the widget update modes; fast, smart, conservative and default. But the widget refuses to update.
- The widget sometimes updates when I lock the screen and unlock it again but this is inconvenient and highly unreliable.
Sorry for the wall of text but I wanted to be as specific as possible, so that if I am making a mistake you guys could point it out.