Skip to content

Commit c8c9d71

Browse files
Update MyToyota.js
Co-Authored-By: Kael Nox <192391771+V0idVanguard@users.noreply.github.com>
1 parent 90b8520 commit c8c9d71

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Toyota Widget/MyToyota.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@ function addDetailsGrid(widget) {
6666
}
6767

6868

69+
// Toyota Car Widget - Part 5: Add key-value detail box
70+
function addDetailBlock(stack, label, value) {
71+
const block = stack.addStack()
72+
block.layoutVertically()
73+
74+
const lbl = block.addText(label)
75+
lbl.font = Font.mediumSystemFont(11)
76+
lbl.textColor = secondaryTextColor
77+
78+
const val = block.addText(value.toString())
79+
val.font = Font.boldSystemFont(14)
80+
val.textColor = textColor
81+
}
82+
83+
84+
6985
if (widgetSize === "large") {
7086
await buildLargeWidget(widget)
7187
} else {

0 commit comments

Comments
 (0)