Cabbage Logo
Back to Cabbage Site

Corner radius of button & .svg files

Hey Rory,

Two separate questions here:

  1. is there a way to change the corner radius or stroke/fill value of buttons?

  2. because I couldn’t figure out the latter, I made an .svg but for some reason it isn’t loading…

Would you take a look at my syntax? The files are definitely in the .csd folder

button bounds(116, 38, 150, 50), channel("button1"), text("RECORD", "STOP"), channel("chan"), svgfile("off", "mimik_button_off.svg"), svgfile("on", "mimik_button_on.svg")

No currently, but I can add one. In fact, it might be best to use an image which can also respond to mouse presses, but you won’t get the animation unless you hard code it. I think you’re on the right track using an .svg

It could be the SVG that is the problem. JUCE only supports a minimal set of SVG features. If you do anything fancy it might not show. Try the buttonon.svg in the Misc examples folder and see if that works. The SVG example seems to work fine for me when I try it.

OK - I will do that then.

I’ll look into it. I used the default settings for Inkscape .svg export.