Skip to content

Commit bff85ac

Browse files
authored
Update MyToyota.js
Widget Entry Point
1 parent acd4862 commit bff85ac

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Toyota Widget/MyToyota.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,17 @@ const backgroundColor = new Color("#111111")
1717
const textColor = Color.white()
1818
const secondaryTextColor = new Color("#AAAAAA")
1919
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

Comments
 (0)