Add HTML rendering options to icons

This commit is contained in:
Pieter Vander Vennet 2021-04-06 18:17:07 +02:00
parent b3f02572d5
commit 4d5c250f8f
5 changed files with 77 additions and 34 deletions

View file

@ -37,7 +37,13 @@
]
},
"icon": {
"render": "./assets/themes/bookcases/bookcase.svg"
"render": "./assets/themes/bookcases/bookcase.svg;",
"mappings": [
{
"if": "name~*",
"then": "./assets/themes/bookcases/bookcase.svg;<html><div style='margin-top: 42px; background: white; padding: 0.25em; border-radius:0.5em'>{name}</div></html>"
}
]
},
"color": {
"render": "#0000ff"