Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
You only need to recompile an svg file to a drawing if the file content changes - drawings scale using the rect of the image object, based on the viewBox and preserveAspectRatio attributes on the root node of the original svg file. If a specific SVG file isn't scaling when compiled to a drawing

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
> BR wrote: > though I just discovered that if you group the widget, by itself, in > does accept the graphic effects. Was the first time published by Jeanne DeVoto: http://lists.runrev.com/pipermail/use-livecode/2016-October/232259.html after a question of BR in the use-list ...

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
The corresponding versions that use JavaScript (from midth 2017) use the full SVG power of a browser and store the SVG as a property of the image. And then they convert (very fast) the SVG again to the image whenever the image is resized. This doesn't need any additional space if you already use a

Re: SVG icons in buttons

2019-02-27 Thread Richmond via use-livecode
Thanks for the quick response. As requested: Bug 21860 Richmond. On 27.02.19 17:44, Mark Waddingham via use-livecode wrote: On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Hmmm - that is strange - the

Re: SVG icons in buttons

2019-02-27 Thread JJS via use-livecode
Nice, even colors. When you change the size of the svg image, then the image in the button sizes along. You have to adjust the button then to the new size Op 27-2-2019 om 16:44 schreef Mark Waddingham via use-livecode: On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Hmmm - that is strange - the image looks relatively simple there, so the SVG for it should be and thus be supported... Can you file a bug with the .svg fi

Re: SVG icons in buttons

2019-02-27 Thread Sannyasin Brahmanathaswami via use-livecode
Ha! Monte answer, (email is running behind the thread!) "Import the SVG using the drawing library `drawingSVGCompile()` and set the text of an image to the returned value. Then use the image ID as an icon in the normal way." Oh boy! Brahmanathaswami I am a little late to the SVG Party

Re: SVG icons in buttons

2019-02-27 Thread Sannyasin Brahmanathaswami via use-livecode
I am a little late to the SVG Partywhat do you mean: "Admittedly you do need to compile your SVG to the drawing format so you can use them in images," ?? To state the obvious: Currently, I have to "expose" a new SVG widget every time it make it a button. In theory, if SVG can be

Re: SVG icons in buttons

2019-02-27 Thread Richmond via use-livecode
Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Richmond. On 27.02.19 9:54, AndyP via use-livecode wrote: SVGs can also now be Imported As Control > Image svg is now included as an image file type. - Andy Piddock My software never has bugs. It just

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
On 2019-02-27 11:23, hh via use-livecode wrote: That's a fake, as long it is called "SVG"-Icons. These are ordinary images, converted from SVG, no longer SVG objects. Also the import is not a real SVG import but an import of the converted image. This is fine, but we shouldn't name these objects

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
That's a fake, as long it is called "SVG"-Icons. These are ordinary images, converted from SVG, no longer SVG objects. Also the import is not a real SVG import but an import of the converted image. This is fine, but we shouldn't name these objects "SVG" as they are ordinary images in the stack.

Re: SVG icons in buttons

2019-02-26 Thread AndyP via use-livecode
SVGs can also now be Imported As Control > Image svg is now included as an image file type. - Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk Poi

Re: SVG icons in buttons

2019-02-26 Thread HÃ¥kan Liljegren via use-livecode
27 Feb 2019, 06:26 +0100, J. Landman Gay via use-livecode , wrote: > On 2/26/19 6:21 PM, Monte Goulding via use-livecode wrote: > > > > > > > On 27 Feb 2019, at 11:14 am, J. Landman Gay via use-livecode > > > wrote: > > > > > > I thought I read t

Re: SVG icons in buttons

2019-02-26 Thread J. Landman Gay via use-livecode
On 2/26/19 6:21 PM, Monte Goulding via use-livecode wrote: On 27 Feb 2019, at 11:14 am, J. Landman Gay via use-livecode wrote: I thought I read that we could use SVG icons in buttons now. How does that work? I thought I'd tried it once before successfully but I can't get it to

Re: SVG icons in buttons

2019-02-26 Thread Monte Goulding via use-livecode
> On 27 Feb 2019, at 11:14 am, J. Landman Gay via use-livecode > wrote: > > I thought I read that we could use SVG icons in buttons now. How does that > work? I thought I'd tried it once before successfully but I can't get it to > work right now (LC 9.0.3rc1

SVG icons in buttons

2019-02-26 Thread J. Landman Gay via use-livecode
I thought I read that we could use SVG icons in buttons now. How does that work? I thought I'd tried it once before successfully but I can't get it to work right now (LC 9.0.3rc1). -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software