[Sugar-devel] Why does my svg activity icon appears black ?

Sebastian Silva sebastian at fuentelibre.org
Mon Sep 11 15:04:52 EDT 2017


I don't think it's necessary to clone Sugar-Build, besides it's not
maintained.

Rather, look at
https://github.com/llaske/sugarizer/tree/master/lib/sugar-web and try
using that version in your activity.

Good luck!

Sebastian


On 11/09/17 13:40, laurent bernabe wrote:
> Thank you very much.
>
> I'll first clone sugar-build again (it's been a while since I've not
> worked with) then I'll try to spot the differences the way you guided me.
>
> 2017-09-11 20:30 GMT+02:00 Sebastian Silva <sebastian at fuentelibre.org
> <mailto:sebastian at fuentelibre.org>>:
>
>     It seems there was a divergence in the use of sugar-web library
>     with Sugarizer vs Sugar.
>
>     Look for differences in lib/sugar-web and compare with activities
>     in Sugarizer.
>
>     Try to replace your lib/sugar-web with Sugarizer version and see
>     if it works.
>
>     Hopefully they will be merged back together.
>
>     Regards,
>
>     Sebastian
>
>
>     On 11/09/17 13:15, laurent bernabe wrote:
>>     Hello, everyone,
>>
>>     I've fetched the activity icon from my Python activity
>>     HitTheBall, and reused it in the new web activity I am building
>>     in order to create a Web version.
>>
>>     But when launching it from Sugarizer (I think the problem should
>>     be the same in sugar-build, my icon design has a real problem)
>>     the icon appears as black. I am trying to get inspired from the
>>     standard activities icons, but without any success.
>>
>>     This the current code of my activity-icon.svg
>>
>>     -----------------------------------------------------------------------------------------
>>
>>     <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>>     <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
>>     "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd
>>     <http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd>" [
>>         <!ENTITY fill_color "#FFFFFF">
>>         <!ENTITY stroke_color "#010101">
>>     ]>
>>
>>     <svg
>>        xmlns="http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>"
>>        width="55"
>>        height="55"
>>     >
>>       <circle cx="23" cy="23" r="22" stroke="&stroke_color;"
>>     fill="&fill_color;" />
>>       <text
>>          
>>      style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:&stroke_color;;fill-opacity:1;stroke:none;font-family:Sans"
>>            x="8"
>>            y="27"
>>         >1+2</text>
>>     </svg>
>>
>>     --------------------------------------------------------------------------------------------------------------------------
>>
>>     Thanks in advance if I can be helped
>>
>>     -- 
>>     Regards,
>>
>>     Laurent Bernabé 
>>
>>     laurent.bernabe at gmail.com <mailto:laurent.bernabe at gmail.com>
>>
>>
>>     _______________________________________________
>>     Sugar-devel mailing list
>>     Sugar-devel at lists.sugarlabs.org
>>     <mailto:Sugar-devel at lists.sugarlabs.org>
>>     http://lists.sugarlabs.org/listinfo/sugar-devel
>>     <http://lists.sugarlabs.org/listinfo/sugar-devel>
>
>
>
>
> -- 
> Cordialement,
>
> Laurent Bernabé 
>
> laurent.bernabe at gmail.com <mailto:laurent.bernabe at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170911/f5b01d06/attachment.html>


More information about the Sugar-devel mailing list