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

laurent bernabe laurent.bernabe at gmail.com
Mon Sep 11 14:40:51 EDT 2017


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>:

> 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" [
>     <!ENTITY fill_color "#FFFFFF">
>     <!ENTITY stroke_color "#010101">
> ]>
>
> <svg
>    xmlns="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
>
>
> _______________________________________________
> Sugar-devel mailing listSugar-devel at lists.sugarlabs.orghttp://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>


-- 
Cordialement,

Laurent Bernabé

laurent.bernabe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170911/da969e81/attachment-0001.html>


More information about the Sugar-devel mailing list