Skip to content
Snippets Groups Projects
Commit 923d0a82 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

add new style JSON example file

parent f9570ef2
No related branches found
No related tags found
No related merge requests found
{
"svg": "button.svg",
"include": "button_extra.json",
"comment": "new style JSON format with multiple attributes per item",
"items": [
{
"id": "button",
"stroke-width": "IF GET_IS_ENABLED(\"press_button\")=TRUE THEN 6 ELSE 1 END",
"fill": "IF button=TRUE THEN \"green\" ELSE \"red\" END"
},
{
"id": "button",
"stroke-width": "IF GET_IS_ENABLED(\"press_button\")=TRUE THEN 6 ELSE 1 END",
"ignore": "true",
"comment": "stroke-width is now used in hover below"
}
],
"events": [
{
"id": "button",
"event": "toggle_button",
"hovers": [{ "attr":"stroke-width", "enter":"6", "leave":"1"},
{ "attr":"opacity", "enter":"0.8", "leave":"1.0"}]
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment