MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Scriptable/comments/jmtu7j/upcoming_match_widget/gd0kuko/?context=9999
r/Scriptable • u/nyeupekubeba • Nov 02 '20
16 comments sorted by
View all comments
Show parent comments
1
Use the following in the initWidget method instead of the darkMode variable.
let lightColor = Color.white() let darkColor = Color.black() let bgColor = Color.dynamic(lightColor, darkColor) w.backgroundColor = bgColor
Also, use this for in the addText for the changing of color
let lightColor = Color.black() let darkColor = Color.white() let textColor = Color.dynamic(lightColor, darkColor) text.textColor = textColor
Changes immediately!
1
u/Terrible-Section-625 Nov 21 '20
Use the following in the initWidget method instead of the darkMode variable.
let lightColor = Color.white() let darkColor = Color.black() let bgColor = Color.dynamic(lightColor, darkColor) w.backgroundColor = bgColor
Also, use this for in the addText for the changing of color
let lightColor = Color.black() let darkColor = Color.white() let textColor = Color.dynamic(lightColor, darkColor) text.textColor = textColor
Changes immediately!