File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1313const 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- }
You can’t perform that action at this time.
0 commit comments