Skip to content

Commit 04a9013

Browse files
update
take a look Co-Authored-By: Kael Nox <192391771+V0idVanguard@users.noreply.github.com>
1 parent 1695565 commit 04a9013

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

Toyota Widget/MyToyota.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -87,36 +87,3 @@ function addDetailsGrid(widget) {
8787
addDetailBlock(row2, "Status", carInfo.status)
8888
}
8989

90-
// ── 6. Detail Block Renderer ──
91-
function addDetailBlock(stack, label, value) {
92-
const block = stack.addStack()
93-
block.layoutVertically()
94-
95-
const lbl = block.addText(label)
96-
lbl.font = Font.mediumSystemFont(11)
97-
lbl.textColor = secondaryTextColor
98-
99-
const val = block.addText(value.toString())
100-
val.font = Font.boldSystemFont(14)
101-
<<<<<<< Updated upstream
102-
val.textColor = textColor
103-
}
104-
105-
// ── 7. Compact Widget Layout (Small/Medium) ──
106-
function buildCompactWidget(widget) {
107-
widget.setPadding(12, 14, 12, 14)
108-
109-
const title = widget.addText(`${carInfo.brand} ${carInfo.model}`)
110-
title.font = Font.boldSystemFont(16)
111-
title.textColor = textColor
112-
widget.addSpacer(6)
113-
114-
addDetailText(widget, "Year", carInfo.year)
115-
addDetailText(widget, "Mileage", carInfo.mileage)
116-
addDetailText(widget, "Fuel", carInfo.fuel)
117-
addDetailText(widget, "Status", carInfo.status)
118-
}
119-
=======
120-
val.textColor = textColor;
121-
}
122-
>>>>>>> Stashed changes

0 commit comments

Comments
 (0)