Using SVG for ImageButton

Hi, what’s the best way to do this?

Convert an svg to an image and set that on the ImageButton or override the LookAndFeel methods?

thx

How about using a DrawableButton with setImages?

1 Like

well, now I know that exists I’ll certainly give it a go :slight_smile:

@daniel that seems to work for the most part, but I’m losing all the shadow information. when i view the svg files in producer there’s no shadows visible there either, just blank space.

I’ve heard of problems with juce parsing svg in the past - might this be one of those cases?

This is how svgviewer sees the asset:

image

This is how producer sees it: