Commit b56a838
committed
feat(QIcon): Enhance format for svg form (can add multiple paths, each with its own style and svg transform) quasarframework#6976
New format:
path@@style_attr@@transform_attr&&path@@style_attr@@transform_attr&&...|viewBox
- A path is defined by: path@@style_attr@@transform_attr
* style_attr is optional
* transform_attr is optional
* if no style_attr but you have a transform, still use the separator between path and style_attr
(path@@@@transform_attr)
- Supports multiple paths, separated by "&&"
- viewBox is optional
- Backward compatibility with the old format (path|viewBox)1 parent 4a70c55 commit b56a838
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
0 commit comments