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

laurent bernabe laurent.bernabe at gmail.com
Mon Sep 11 14:15:05 EDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170911/32202c70/attachment.html>


More information about the Sugar-devel mailing list