[Sugar-devel] My custom activity-icon renders fine, except in the launched application toolbar

laurent bernabe laurent.bernabe at gmail.com
Sun Jan 26 05:09:44 EST 2014


Ok, found the problem :)

I need extra quotes :

_______________________________________________________
$ python ./sugariconify.py -s "#000000" -f "#ffffff" -o activity-icon.svg
entities_passed == 2

entity definitions:
     self.stroke_entity = #000000
     self.fill_entity = #ffffff
___________________________________________________________

Regards



2014-01-26 laurent bernabe <laurent.bernabe at gmail.com>

> Hello, thank you for your answer.
>
> Something must be wrong with parameters, as it sends me the options back :
>
> ________________________________________________________________
> $ python ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg
>
> Usage: sugar-iconify.py [options] input.svg
>
> Options:
>
>  -c Apply default color entities (#666666, #ffffff) to output
>  -d directory The preferred output directory
>  -e Do not insert entities for strokes and fills
>  -f hex Hex value to replace with fill entity
>  -g Automatically accept guesses for stroke and fill entities
>  -h Display this help message
>  -i Insert "isolated stroke" entities
>  -m Multiple export; export top level groups as separate icons
>  -o Overwrite the input file; overridden by -m
>  -p pattern Only export icons whose name matches pattern; for use with -m
>  -s hex Hex value to replace with stroke entity
>  -x Output example SVGs, for previewing their appearance in Sugar;
>     ignored with -m
>  -v verbose
>
> ___________________________________________________________________
>
> Regards
>
>
> 2014-01-25 Walter Bender <walter.bender at gmail.com>
>
>> try:
>>
>> python ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg
>>
>>
>> On Sat, Jan 25, 2014 at 4:45 PM, laurent bernabe
>> <laurent.bernabe at gmail.com> wrote:
>> > Hello again,
>> >
>> > I've downloaded sugariconify script in my Ubuntu post, but I get the
>> > following error :
>> >
>> > _____________________________________________________________________
>> > $ ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg
>> > ./sugariconify.py: ligne 27: HELP : commande introuvable  (could not
>> find
>> > command HELP on line 27)
>> > ./sugariconify.py: ligne 45: Erreur de syntaxe près du symbole
>> inattendu « (
>> > » (syntax error near unexpected symbol '(' on line 45 )
>> > ./sugariconify.py: ligne 45: `class SugarIconify():' (on line 45).
>> > _____________________________________________________________________
>> >
>> > Regards
>> >
>> >
>> > 2014-01-25 laurent bernabe <laurent.bernabe at gmail.com>
>> >
>> >> Hello,
>> >>
>> >> thank you for your answer,
>> >>
>> >> in fact the folder icons should have been named "pictures", as I won't
>> use
>> >> these resources as icons, but as pictures in my application.
>> >>
>> >> I didn't know about the sugar_iconify program : thanks again, I'll
>> have a
>> >> look at it. As I kept a copy of my svg activity icon before adding
>> entities,
>> >> it is still time to use it.
>> >>
>> >> Thanks.
>> >>
>> >> Regards
>> >>
>> >>
>> >> 2014-01-25 Walter Bender <walter.bender at gmail.com>
>> >>>
>> >>> Your icons are all bmp files. We use SVG for icons in Sugar. Please
>> >>> refer to these pages:
>> >>>
>> >>>
>> >>>
>> http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Icons
>> >>>
>> >>> and
>> >>>
>> >>> http://wiki.sugarlabs.org/go/Sugar_iconify
>> >>>
>> >>> regards.
>> >>>
>> >>> -walter
>> >>>
>> >>> On Sat, Jan 25, 2014 at 5:46 AM, laurent bernabe
>> >>> <laurent.bernabe at gmail.com> wrote:
>> >>> > Oups, it seems that i forgot to link onto my project :
>> >>> > LearnChessWeb
>> >>> >
>> >>> > Helps are welcome.
>> >>> >
>> >>> > Regards.
>> >>> >
>> >>> >
>> >>> > 2014/1/24 laurent bernabe <laurent.bernabe at gmail.com>
>> >>> >>
>> >>> >> Hello,
>> >>> >>
>> >>> >> in my project LearningChessWeb, I've just changed the activity
>> icon.
>> >>> >> It renders fine in journal and activities menu, but it can't be
>> seen
>> >>> >> in
>> >>> >> the application toolbar, once launched.
>> >>> >>
>> >>> >> How could I "patch" it ?
>> >>> >>
>> >>> >> This is where I've been looking :
>> >>> >> http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
>> >>> >>
>> >>> >> I've been designing icon with Inkscape, and added entities from
>> >>> >> Brackets
>> >>> >> IDE  (maybe it isn't the best way to design an activity icon ...)
>> >>> >>
>> >>> >> Regards
>> >>> >
>> >>> >
>> >>> >
>> >>> > _______________________________________________
>> >>> > Sugar-devel mailing list
>> >>> > Sugar-devel at lists.sugarlabs.org
>> >>> > http://lists.sugarlabs.org/listinfo/sugar-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Walter Bender
>> >>> Sugar Labs
>> >>> http://www.sugarlabs.org
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140126/32f38276/attachment-0001.html>


More information about the Sugar-devel mailing list