Skip to content

Commit 2145342

Browse files
authored
Update MyToyota.js
1 parent 1d1bed7 commit 2145342

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Toyota Widget/MyToyota.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ function addDetailBlock(stack, label, value) {
9595
val.textColor = textColor
9696
}
9797

98+
// Toyota Car Widget - Part 7: Add label/value to compact view
99+
function addDetailText(widget, label, value) {
100+
const row = widget.addStack()
101+
const lbl = row.addText(`${label}: `)
102+
lbl.textColor = secondaryTextColor
103+
lbl.font = Font.mediumSystemFont(12)
104+
105+
const val = row.addText(value.toString())
106+
val.textColor = textColor
107+
val.font = Font.mediumSystemFont(12)
108+
}
109+
98110

99111

100112
if (widgetSize === "large") {

0 commit comments

Comments
 (0)