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

Walter Bender walter.bender at gmail.com
Wed Aug 10 10:07:52 EDT 2011


On Wed, Aug 10, 2011 at 9:52 AM, simon at schampijer.de <simon at schampijer.de>wrote:

> Thanks for the icon! Has the design team talked about it already? Attached
> is a
> screen shot after duplicating the Memorize activity in the case they
> haven't. Do
> you intend to place the icon in the palette option as well where you do the
> actual cloning as well? About the naming, maybe something like
> 'activity-customize' or 'activity-duplicate' makes sense, what do you
> think?
>

The intention of the icon is to make it clear that the activity is a
modified version of the original. Manuq is the one who came up with the hand
overlay concept, which was given an OK by the design team, although Manaq
had said he may try to fine-tune it somewhat.


Regarding the name, I had started off with something along the lines of your
suggestion, a generic name indicating a clone, but decided instead that
using the nick as part of the name was a better option: If both of us clone
memorize and then share our modifications, we won't have a naming conflict:
I'll get erikos_memorize and you'll get walter_memorize. A generic name
would result in a conflict.

regards.

-walter

PS: regarding the other changes to view source, I have made patches to (1)
update the title when you switch between the activity source and the
sugar-toolkit source; and (2) loading activity.py by default into the viewer
for sugar-toolkit source. However, in regard to #2, I am not sure how to
tell the TreeView what node is currently selected. Is there some standard
approach you can point me to: I have the file name, and need to associate it
with a node.

>
>
> Regards,
>    Simon
>
>
>
> Walter Bender <walter at sugarlabs.org> hat am 2. August 2011 um 01:08
> geschrieben:
>
> > From: Walter Bender <walter.bender at gmail.com>
> >
> >
> > This patch provides a new icon to the Sugar toolkit that is used by the
> > cloning enhancement to View Source. The icon, in the shape of a hand, is
> > superimposed on to the activity icon that is being cloned to indicate
> that is
> > has been modified by the end user. Manuq was instrumental in the design.
> >
> > ---
> >  icons/scalable/actions/Makefile.am   |    1 +
> >  icons/scalable/actions/customize.svg |    8 ++++++++
> >  2 files changed, 9 insertions(+), 0 deletions(-)
> >  create mode 100644 icons/scalable/actions/customize.svg
> >
> > diff --git a/icons/scalable/actions/Makefile.am
> > b/icons/scalable/actions/Makefile.am
> > index 9df018b..17d771c 100644
> > --- a/icons/scalable/actions/Makefile.am
> > +++ b/icons/scalable/actions/Makefile.am
> > @@ -11,6 +11,7 @@ icon_DATA =
>     \
> >          cell-width.svg                                        \
> >          column-insert.svg                                \
> >          column-remove.svg                                \
> > +        customize.svg                                        \
> >          dialog-cancel.svg                                \
> >          dialog-ok.svg                                        \
> >          document-save.svg                                \
> > diff --git a/icons/scalable/actions/customize.svg
> > b/icons/scalable/actions/customize.svg
> > new file mode 100644
> > index 0000000..712b173
> > --- /dev/null
> > +++ b/icons/scalable/actions/customize.svg
> > @@ -0,1 +1,42 @@
> > +<?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'
> > 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [
> > +        <!ENTITY stroke_color "#000">
> > +        <!ENTITY fill_color "#eee">
> > +]><svg height="55px" viewBox="0 0 55 55" width="55px"
> > xmlns="http://www.w3.org/2000/svg" xmlns:xlink="
> http://www.w3.org/1999/xlink"
> > stroke-linecap="round" stroke-linejoin="round" stroke-width="3.5"
> > stroke="&stroke_color;" fill="&fill_color;">
> > +  <path
> > + d="m -12.724351,-24.479403 0,80.000002
> > + 80.000002,0 0,-80.000002 -80.000002,0 z m 46.954547,5.318182 c
> > + 0.400232,-0.02895 0.797687,-0.01309 1.136363,0.04553 1.230124,0.211855
> > + 2.382488,1.717688 2.272728,2.636364 -1.1416,9.5547639
> > + -5.151535,18.4166114 -5.318182,27.136364 -0.01309,0.69219
> > + 1.315898,1.693208 1.727272,1.136364 5.256728,-7.1156365
> > + 6.55747,-15.9348804 12.045455,-24.363637 0.733397,-1.126386
> > + 2.770822,-0.998415 4,-0.454545 1.640306,0.725774 2.528335,2.559578
> > + 2.09091,3.863636 -3.670473,10.942284 -7.777455,17.0466187
> > + -10.636364,25.409092 -0.257048,0.751883 0.420538,1.638109 1,2.181818
> > + 0.864611,0.811258 2.137629,1.427578 3.318182,1.318182
> > + 6.140858,-0.568989 9.650953,-8.763535 15.727273,-9.8181823
> > + 1.113236,-0.1932218 2.582167,-0.1670109 3.272727,0.7272723
> > + 0.704742,0.912655 0.719055,2.681339 -0.136291,3.454546
> > + -5.272073,4.765397 -10.671433,8.236931 -15.409091,12.545455
> > + -3.947055,3.589498 -4.95936,9.466197 -8.045455,13.818182
> > + -1.969731,2.777717 -3.827738,5.847317 -6.636364,7.772728
> > + -1.677949,1.150283 -3.740334,2.089629 -5.772727,2 -2.21072,-0.0976
> > + -3.892728,-2.214866 -6.045455,-2.727273 -2.196858,-0.522927
> > + -4.549106,0.121161 -6.772727,-0.27273 C 13.86589,46.861399
> > + 11.527286,46.500046 9.730268,45.20249 5.6900056,42.285166
> > + 4.0990964,36.980046 0.95754,33.111581 -2.5132238,28.837733
> > + -5.2707511,24.294984 -10.133369,20.884307 c -1.434328,-1.006036
> > + -0.591099,-4.205498 0.863636,-5.181818 2.697804,-1.810574
> > + 6.6717819,0.53712 9.5000002,2.136364 2.8962183,1.637731
> > + 3.5830256,7.313658 6.9090911,7.227273 C 9.486864,25.00518
> > + 10.852071,21.92582 11.730268,19.747944 13.743809,14.75446
> > + 12.911664,8.9863435 12.593904,3.6115797 12.230529,-2.5345732
> > + 12.333962,-8.358355 13.775722,-14.842966 c 0.284378,-1.279011
> > + 2.157949,-2.052306 3.454546,-1.863637 1.276436,0.185717
> > + 2.42224,1.473978 2.727273,2.727273 1.808756,7.4321603
> > + -1.073717,14.5794914 0.863636,21.0454552 0.33888,1.1310546
> > + 2.822298,2.7155928 3.181818,1.5909092 2.412669,-7.5470548
> > + 3.371709,-17.6644664 7.272728,-26.3181824 0.423694,-0.939898
> > + 1.753847,-1.413397 2.954545,-1.5 z"
> > +   style="fill:&fill_color;;fill-opacity:1;stroke:none" />
> > +</svg>
> > \ No newline at end of file
> > --
> > 1.7.4.4
> >
> > _______________________________________________
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110810/9bf125ce/attachment.html>


More information about the Sugar-devel mailing list