[Sugar-devel] Why does my svg activity icon appears black ?
Sebastian Silva
sebastian at fuentelibre.org
Mon Sep 11 14:30:53 EDT 2017
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 <mailto:laurent.bernabe at gmail.com>
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170911/ef6b54c0/attachment.html>
More information about the Sugar-devel
mailing list