changeset 154:acfcd3db4bca

Correct Lock color and size
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 13 Sep 2011 22:37:41 +0200
parents 9c47bf162ea1
children 9afea431af36
files data/menus/lock.png scripts/make_pngs.sh source/svg/menus/lock.svg
diffstat 3 files changed, 34 insertions(+), 56 deletions(-) [+]
line wrap: on
line diff
Binary file data/menus/lock.png has changed
--- a/scripts/make_pngs.sh	Tue Sep 13 22:39:37 2011 +0200
+++ b/scripts/make_pngs.sh	Tue Sep 13 22:37:41 2011 +0200
@@ -8,13 +8,15 @@
 svgroot=source/svg
 pngroot=data
 
-for sourcepath in `find $svgroot -name "*.svg"`
+for sourcepath in `find "$svgroot" -name "*.svg"`
 do
-    sourcefile=`basename $sourcepath`
-    sourcedir=`dirname $sourcepath`
-    destdir=${sourcedir/#$svgroot/$pngroot}
-    mkdir -p $destdir
-    destpath=$destdir/${sourcefile/%svg/png}
-    rsvg-convert $sourcepath -w $tilesize -h $tilesize -o $destpath
-    pngcrush -q $destpath tmp && mv tmp $destpath
+    sourcefile="`basename $sourcepath`"
+    sourcedir="`dirname $sourcepath`"
+    destdir="${sourcedir/#$svgroot/$pngroot}"
+    mkdir -p "$destdir"
+    destpath="$destdir/${sourcefile/%svg/png}"
+    opts=""
+    echo "$sourcepath" | grep -Fq /tiles/ && opts="-w $tilesize -h $tilesize"
+    rsvg-convert "$sourcepath" $opts -o "$destpath"
+    pngcrush -q "$destpath" tmp && mv tmp "$destpath"
 done
--- a/source/svg/menus/lock.svg	Tue Sep 13 22:39:37 2011 +0200
+++ b/source/svg/menus/lock.svg	Tue Sep 13 22:37:41 2011 +0200
@@ -9,12 +9,12 @@
    xmlns="http://www.w3.org/2000/svg"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="100"
-   height="100"
+   width="50"
+   height="50"
    id="svg2"
    version="1.1"
-   inkscape:version="0.48.1 r9760"
-   sodipodi:docname="New document 1">
+   inkscape:version="0.48.2 r9819"
+   sodipodi:docname="lock.svg">
   <defs
      id="defs4" />
   <sodipodi:namedview
@@ -24,38 +24,38 @@
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
-     inkscape:zoom="3.959798"
-     inkscape:cx="84.632209"
-     inkscape:cy="45.213653"
+     inkscape:zoom="7.919596"
+     inkscape:cx="6.11207"
+     inkscape:cy="29.630633"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
      showguides="true"
      inkscape:guide-bbox="true"
-     inkscape:window-width="1678"
-     inkscape:window-height="1023"
+     inkscape:window-width="1280"
+     inkscape:window-height="776"
      inkscape:window-x="0"
-     inkscape:window-y="25"
-     inkscape:window-maximized="0">
+     inkscape:window-y="24"
+     inkscape:window-maximized="1">
     <sodipodi:guide
        orientation="1,0"
-       position="20,0"
+       position="5,0"
        id="guide3761" />
     <sodipodi:guide
        orientation="1,0"
-       position="80,0"
+       position="45,0"
        id="guide3763" />
     <sodipodi:guide
        orientation="1,0"
-       position="30,0"
+       position="25,0"
        id="guide3765" />
     <sodipodi:guide
        orientation="1,0"
-       position="50,0"
+       position="10,0"
        id="guide3767" />
     <sodipodi:guide
        orientation="1,0"
-       position="70,0"
+       position="40,0"
        id="guide3769" />
     <sodipodi:guide
        orientation="0,1"
@@ -63,30 +63,6 @@
        id="guide3781" />
     <sodipodi:guide
        orientation="0,1"
-       position="0,50"
-       id="guide3783" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,95"
-       id="guide3785" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,70"
-       id="guide3787" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,27.5"
-       id="guide3791" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,90"
-       id="guide3793" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,10"
-       id="guide3799" />
-    <sodipodi:guide
-       orientation="0,1"
        position="0,45"
        id="guide3801" />
   </sodipodi:namedview>
@@ -98,7 +74,7 @@
         <dc:format>image/svg+xml</dc:format>
         <dc:type
            rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title></dc:title>
+        <dc:title />
       </cc:Work>
     </rdf:RDF>
   </metadata>
@@ -106,15 +82,15 @@
      inkscape:label="Layer 1"
      inkscape:groupmode="layer"
      id="layer1"
-     transform="translate(0,-952.36218)">
+     transform="translate(0,-1002.3622)">
     <path
-       style="fill:#000000;fill-opacity:1;stroke:none"
-       d="M 20 50 L 20 95 L 80 95 L 80 50 L 20 50 z M 50 55 C 54.142135 55 57.5 58.357865 57.5 62.5 C 57.5 65.267769 55.980686 67.669133 53.75 68.96875 L 53.75 90 L 46.25 90 L 46.25 68.96875 C 44.019314 67.669133 42.5 65.267769 42.5 62.5 C 42.5 58.357865 45.857864 55 50 55 z "
-       transform="translate(0,952.36218)"
-       id="rect2987" />
+       style="fill:#ff0000;fill-opacity:1;stroke:none"
+       d="m 11.6665,1027.362 0,20.0002 26.667,0 0,-20.0002 -26.667,0 z M 25,1029.5842 c 1.840972,0 3.333375,1.4924 3.333375,3.3334 0,1.2301 -0.675259,2.2974 -1.666687,2.875 l 0,9.3474 -3.333375,0 0,-9.3474 c -0.991429,-0.5776 -1.666688,-1.6449 -1.666688,-2.875 0,-1.841 1.492403,-3.3334 3.333375,-3.3334 z"
+       id="rect2987"
+       inkscape:connector-curvature="0" />
     <path
-       style="fill:none;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
-       d="m 30,1024.8622 0,-42.50002 c 0,0 0,-20 20,-20 20,0 20,20 20,20 l 0,42.50002"
+       style="fill:none;stroke:#ff0000;stroke-width:4.44449996999999986;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       d="m 16.111,1037.3621 0,-18.8891 c 0,0 0,-8.889 8.889,-8.889 8.889,0 8.889,8.889 8.889,8.889 l 0,18.8891"
        id="path3789"
        inkscape:connector-curvature="0"
        sodipodi:nodetypes="ccscc" />