equal
deleted
inserted
replaced
|
1 // widget_textstylelist.ysl2 |
|
2 |
|
3 widget_desc("TextStyleList") { |
|
4 longdesc |
|
5 || |
|
6 TextStyleList widget is a svg:group, list items are labeled elements |
|
7 in that group. |
|
8 |
|
9 To use a TextStyleList, clone (svg:use) one of the items inside the widget |
|
10 that expects a TextStyleList. |
|
11 |
|
12 In this list, only style matters. Text content is ignored. |
|
13 || |
|
14 |
|
15 shortdesc > A named list of named texts |
|
16 |
|
17 arg name="listname" |
|
18 } |
|
19 |
|
20 widget_defs("TextStyleList") { |
|
21 | styles: { |
|
22 foreach "$hmi_element/*[@inkscape:label]" { |
|
23 const "style", "func:refered_elements(.)[self::svg:text]/@style"; |
|
24 | «@inkscape:label»: "«$style»", |
|
25 } |
|
26 | }, |
|
27 } |
|
28 |