Themeing my App for different screens

Probably, and on both screens....

image

valueIfTagNotThere should be a list. You create lists dark and light and save these to themeSetting, therefore a list will be required whenever you call themeSetting. As per my blocks provided!

But I did type it exactly like your provided blocks? I'm sorry if I may be dense. It's kinda hard to understand MIT AI sometimes.

Nope, I used an empty list

image

1 Like

But in the if dark = call tinyDB you inserted no list.
I understood that as: use dark if its there, if not write light in there? Please look again at the last pictuure I added. It's from your .aia

1 Like

Yes, sorry, confusing tag setting with procedure setTheme

But this is why I asked you to share your aia project, something is not right. A second pair of eyes might help to find your problem.

1 Like

I personally use this method to set themes.

Theme.aia (5.8 KB)

Not tested in Companion. Works in Compiled .apk installed.

Hi again!
I tried incorporating Shuhamr69's solution. I get an error now:
"The operation On cannot accept the arguments: , [[-16777216, -7829368, -1]]
Note: You will not see another error reported for 5 seconds."

It worked so far that I could change it once to darkmode. But now it's stuck there.


1 Like

That shouldn't be happening. Everything was working fine in my tests.
Please share the .aia file here.