diff --git a/Button/button_new_style.json b/Button/button_new_style.json new file mode 100644 index 0000000000000000000000000000000000000000..d07943157c315a92e77b0d9e667c1ff8675505af --- /dev/null +++ b/Button/button_new_style.json @@ -0,0 +1,26 @@ +{ + "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"}] + } + ] +}