We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 871cbe1 + 6178d75 commit 00f4f8dCopy full SHA for 00f4f8d
1 file changed
Toyota Widget/MyToyota.js
@@ -17,3 +17,17 @@ const backgroundColor = new Color("#111111")
17
const textColor = Color.white()
18
const secondaryTextColor = new Color("#AAAAAA")
19
const accentColor = new Color("#F5F5F5")
20
+
21
+// Toyota Car Widget - Part 2: Entry
22
+const widget = new ListWidget()
23
+widget.backgroundColor = backgroundColor
24
25
+if (widgetSize === "large") {
26
+ await buildLargeWidget(widget)
27
+} else {
28
+ buildCompactWidget(widget)
29
+}
30
31
+Script.setWidget(widget)
32
+widget.presentPreview()
33
+Script.complete()
0 commit comments