james at thehales.id.au
Mon Jun 20 02:45:13 CEST 2016
My app had some 20 or so buttons, each with a carefully drawn and saved png (in multiple sizes) that sorted of looked ok in LC7.
Once I moved over to LC8 I immediately went looking for svg icons, modifying them or making my own. Extracted the path (really not that difficult, there is even a library stack now that will do it for you) and replaced all my png'd buttons with SVG widgets.
The widgets, quite happily respond to the mouseup handlers and now I have really nice looking icons that respond to user interaction and will look great no matter what the screen resolution of the device they are being shown on.
No, it is not importing an SVG graphic as such, but in this case who cares?
Sure they are monochrome, but I actually prefer them that way.
I will take monochrome clarity over a colored blur any day ;-)
Richard, in replying to...
> Sannyasin Brahmanathaswami who wrote:
>> With images we can import a raster "object" and then set the icon
>> of a button to that image.
>> Wouldn't it be nice to be able to do the same with a SVG file?
> We can't?
> What's the point of an SGV Icon object if it can't be used as an icon?
More information about the use-livecode