[Sugar-devel] [PATCH] adding new customize icon used when copying bundle source

Walter Bender walter.bender at gmail.com
Sat Aug 13 11:23:13 EDT 2011


2011/8/13 Walter Bender <walter.bender at gmail.com>

>
>
> 2011/8/13 manuel quiñones <manuel.por.aca at gmail.com>
>
>> 2011/8/12 Walter Bender <walter.bender at gmail.com>:
>> >
>> >
>> > 2011/8/12 manuel quiñones <manuel.por.aca at gmail.com>
>> >>
>> >> Hi Gary,
>> >>
>> >> El día 12 de agosto de 2011 15:45, Gary Martin
>> >> <garycmartin at googlemail.com> escribió:
>> >> > Hi Manuel,
>> >> >
>> >> > On 12 Aug 2011, at 17:15, manuel quiñones <manuel.por.aca at gmail.com>
>> >> > wrote:
>> >> >
>> >> >> 2011/8/12 Bert Freudenberg <bert at freudenbergs.de>:
>> >> >>> On 12.08.2011, at 15:59, Simon Schampijer wrote:
>> >> >>>>
>> >> >>>> I like the idea of a badge, and a hand or maybe even the gear icon
>> >> >>>> sound good to me.
>> >> >>>>
>> >> >>>> Regards,
>> >> >>>>   Simon
>> >> >>>
>> >> >>> Since the gear is on the XO keyboard for "view source" this seems
>> like
>> >> >>> the obvious choice to me.
>> >> >>
>> >> >> Thanks for all the input.  Here is a new icon with the gear as a
>> badge:
>> >> >>
>> >> >> http://wiki.sugarlabs.org/go/User:Manuq/CopyBundleIcons
>> >> >
>> >> > If the cog has a border (Walter's version where the cog fill stays
>> the
>> >> > same shape) do we need to shrink the original activity icon so much,
>> or even
>> >> > not at all?
>> >>
>> >> I think that the cog may occlude some important part of the icon if it
>> >> is not resized, but there is no other way to know it than testing.  We
>> >> may have the reduction percentage be a variable in the patch.  Walter,
>> >> is this possible?  Then we can test and see what works better.
>> >>
>> >> > So no one likes simple patten badges for indicating different
>> modified
>> >> > copies, oh well, next time ;)
>> >>
>> >> Sorry for not responding about the identicons, I was hoping to get a
>> >> solution for this in the short term so it can be pushed in Sugar
>> >> before code freeze.  I like the identicons, but it may lead to more
>> >> design feedback, and there is no many time.
>> >>
>> >> Regards,
>> >>
>> >> > Regards,
>> >> > --Gary
>> >> >
>> >> >> --
>> >> >> .. manuq ..
>> >> >> _______________________________________________
>> >> >> Sugar-devel mailing list
>> >> >> Sugar-devel at lists.sugarlabs.org
>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> .. manuq ..
>> >> _______________________________________________
>> >> Sugar-devel mailing list
>> >> Sugar-devel at lists.sugarlabs.org
>> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >
>> > I think the attached icon, with a transformation matrix as follows seems
>> > about right for the various activity icons I have tested:
>> >
>> > <g
>> >    transform="matrix(0.4,0,0,0.4,32,32)"
>> >    id="emblem-view-source"
>> >    style="display:block">
>> >
>> > ...
>> >
>> > </g>
>> >
>> > I assume that making it an emblem makes sense.
>>
>> Tested in Inkscape, and it looks good!  It puts the gear in the top
>> right, not in the bottom right, but it may be Inkscape.
>>
>> --
>> .. manuq ..
>>
>
> Hmm. I have been inserting the emblem programmatically and it goes in the
> lower left as expected.
>
>
> -walter
>
> --
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
>
>
I pushed a patch with the new emblem code. Note that there are a few corner
cases: some icons do weird things vis-a-vis their scaling and so the overlay
doesn't always get framed properly, resulting in the overlay being partially
off the screen. I noticed this specifically when cloning some of the
activities from mulawa. I'll revisit my algorithm for positioning but I am
hoping the patch can land as is, as it seems to work well with icons that
are 55x55.

regards.

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110813/ab65c07d/attachment.html>


More information about the Sugar-devel mailing list