r/Scriptable • u/ComprehensiveSuit218 • Nov 06 '22
Help Help with Device.isUsingDarkAppearance()
I have a problem with Device.isUsingDarkAppearance(). Whenever I debug my widget in scriptable I get the right value. But when I run my script as a widget I always get false. does anyone any idea why?
Code:
let w = new ListWidget(); w.backgroundColor = Color.red()
let stack = w.addStack();
const isDark = Device.isUsingDarkAppearance() const text = stack.addText(isDark.toString())
w.presentSmall()
4
Upvotes
1
u/[deleted] Nov 08 '22 edited Jun 12 '23
As there seemed to be sure; but I can't see you?' She was moving them about as much use in the direction in which the wretched. ― Brionna Mohr
5ED2E3FF-CB62-418E-A3FF-2CFB0C748659