equal
deleted
inserted
replaced
1 // widget_list.ysl2 |
1 // widget_list.ysl2 |
2 |
2 |
3 template "widget[@type='List']", mode="widget_defs" { |
3 widget_defs("List") { |
4 param "hmi_element"; |
4 param "hmi_element"; |
5 | items: { |
5 | items: { |
6 foreach "$hmi_element/*[@inkscape:label]" { |
6 foreach "$hmi_element/*[@inkscape:label]" { |
7 | «@inkscape:label»: "«@id»", |
7 | «@inkscape:label»: "«@id»", |
8 } |
8 } |
9 | }, |
9 | }, |
10 } |
10 } |
11 |
11 |
12 template "widget[@type='TextStyleList']", mode="widget_defs" { |
12 widget_defs("TextStyleList") { |
13 param "hmi_element"; |
13 param "hmi_element"; |
14 | styles: { |
14 | styles: { |
15 foreach "$hmi_element/*[@inkscape:label]" { |
15 foreach "$hmi_element/*[@inkscape:label]" { |
16 const "style", "func:refered_elements(.)[self::svg:text]/@style"; |
16 const "style", "func:refered_elements(.)[self::svg:text]/@style"; |
17 | «@inkscape:label»: "«$style»", |
17 | «@inkscape:label»: "«$style»", |