Skip to content

Commit 9f1685f

Browse files
authored
Merge pull request #20 from rushhiii/main6
update
2 parents 1098f37 + b7af6fd commit 9f1685f

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

Toyota Widget/MyToyota.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// ── 1. Config & Mock Data ──
1010
// const widgetSize = config.widgetFamily || 'large'
11-
const widgetSize = config.widgetFamily || 'medium' // Change to 'small' or 'large' as needed
11+
// const widgetSize = config.widgetFamily || 'medium' // Change to 'small' or 'large' as needed
1212

1313
const carInfo = {
1414
brand: "Toyota",
@@ -115,15 +115,3 @@ function buildCompactWidget(widget) {
115115
addDetailText(widget, "Fuel", carInfo.fuel)
116116
addDetailText(widget, "Status", carInfo.status)
117117
}
118-
119-
// ── 8. Compact Text Row ──
120-
function addDetailText(widget, label, value) {
121-
const row = widget.addStack()
122-
const lbl = row.addText(`${label}: `)
123-
lbl.textColor = secondaryTextColor
124-
lbl.font = Font.mediumSystemFont(12)
125-
126-
const val = row.addText(value.toString())
127-
val.textColor = textColor
128-
val.font = Font.mediumSystemFont(12)
129-
}

0 commit comments

Comments
 (0)