Re: [Sugar-devel] Handling of SVG in Sugar/Sugarizer

2020-08-26 Thread Lionel Laské
Le mer. 26 août 2020 à 07:34, James Cameron a écrit : > > > Hmmm. Are you sure you should not define a tag in the > SVG > > file and reference #myid in the tag? > > I don't know, but I don't think so. There's no HTML used by Sugar in > the steps to read and render an SVG file. > > It's not rel

Re: [Sugar-devel] Handling of SVG in Sugar/Sugarizer

2020-08-25 Thread Lionel Laské
Le mar. 25 août 2020 à 06:51, James Cameron a écrit : > > To help answer that, I've prepared a fork of Hello World with the > sugar3.graphics.icon module inline. > > https://github.com/sugarlabs/hello-world/tree/test-svg-css > > Nice! > Next, I need a sample SVG file with CSS file in the form y

Re: [Sugar-devel] Handling of SVG in Sugar/Sugarizer

2020-08-21 Thread Lionel Laské
I agree with the change. > > Good to hear. > For your interest, Sugar loads SVG and changes the colours in > sugar3.graphics.icon _SVGLoader; > > > https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/graphics/icon.py#L116 > Thanks for the link. The question is: is it possible

Re: [Sugar-devel] Handling of SVG in Sugar/Sugarizer

2020-08-20 Thread James Cameron
Thanks Lionel, I agree with the change. For your interest, Sugar loads SVG and changes the colours in sugar3.graphics.icon _SVGLoader; https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/graphics/icon.py#L116 In your study you say; "The SVG file should be updated manually" .

Re: [Sugar-devel] Handling of SVG in Sugar/Sugarizer

2020-08-20 Thread Walter Bender
Very interesting. I hadn't known that svg had css support these days. Would make sense to take advantage. On Thu, Aug 20, 2020, 4:55 PM Lionel Laské wrote: > > Hi all, > > From the beginning, the handling of SVG files in Sugar rely on Entity > fields in the header of files. Something like: > >