Skip to content

Commit 8c0e1ee

Browse files
authored
Merge pull request #12 from rushhiii/rushhiii-patch-1
Update MyToyota.js
2 parents 1d1bed7 + 2145342 commit 8c0e1ee

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)