[Sugar-devel] Why does my svg activity icon appears black ?
laurent bernabe
laurent.bernabe at gmail.com
Mon Sep 11 15:21:13 EDT 2017
Hello again,
I've replaced the sugar-web folder of my activity (which was taken from the
template activity) by a copy of the sugar-web folder inside the Sugarizer
lib/ subfolder, reloaded Sugarizer (I am running through Python simple
server) page, but it did not change anything.
2017-09-11 21:06 GMT+02:00 laurent bernabe <laurent.bernabe at gmail.com>:
> Thank you.
> So I'll do this way.
>
> 2017-09-11 21:04 GMT+02:00 Sebastian Silva <sebastian at fuentelibre.org>:
>
>> I don't think it's necessary to clone Sugar-Build, besides it's not
>> maintained.
>>
>> Rather, look at https://github.com/llaske/suga
>> rizer/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>:
>>
>>> 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
>>
>>
>>
>
>
> --
> Cordialement,
>
> Laurent Bernabé
>
> laurent.bernabe at gmail.com
>
--
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/257741fe/attachment.html>
More information about the Sugar-devel
mailing list