Mercurial > MadButterfly
changeset 801:f84ccf1f59ae
Add icons for the menu demo
author | wycc |
---|---|
date | Wed, 01 Sep 2010 02:01:40 +0800 |
parents | 76470d692bb9 |
children | 843f1b5548d7 |
files | nodejs/desktop.svg nodejs/music.png nodejs/photo.png nodejs/testdesktop.js nodejs/tool.png |
diffstat | 5 files changed, 30 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/desktop.svg Tue Aug 31 14:55:25 2010 +0800 +++ b/nodejs/desktop.svg Wed Sep 01 02:01:40 2010 +0800 @@ -25,11 +25,11 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.98994949" - inkscape:cx="207.31468" + inkscape:zoom="2.8" + inkscape:cx="286.57568" inkscape:cy="177.14286" inkscape:document-units="px" - inkscape:current-layer="g2917" + inkscape:current-layer="g2917-8-6" showgrid="false" inkscape:window-width="1920" inkscape:window-height="1006" @@ -66,8 +66,8 @@ id="rect2915" style="fill:#0000ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <image - y="805.51184" - x="53.165012" + y="809.55243" + x="63.266537" id="image2983" xlink:href="file:video.png" height="84.588799" @@ -85,6 +85,13 @@ width="83.842659" id="rect2915-9" style="fill:#0000ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <image + y="810.67859" + x="63.009457" + id="image3048" + xlink:href="file:music.png" + height="76.928574" + width="86.5" /> </g> <g id="g2917-88" @@ -98,6 +105,13 @@ width="83.842659" id="rect2915-8" style="fill:#0000ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <image + y="809.93323" + x="63.624115" + id="image3049" + xlink:href="file:photo.png" + height="76.14286" + width="84" /> </g> <g id="g2917-8-6" @@ -111,6 +125,13 @@ width="83.842659" id="rect2915-9-8" style="fill:#0000ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <image + y="810.79041" + x="63.521473" + id="image3168" + xlink:href="file:tool.png" + height="75.14286" + width="84.571426" /> </g> </g> </svg>
--- a/nodejs/testdesktop.js Tue Aug 31 14:55:25 2010 +0800 +++ b/nodejs/testdesktop.js Wed Sep 01 02:01:40 2010 +0800 @@ -1,3 +1,4 @@ +// vim: ts=4 var svg = require("./svg"); var mbapp = require("./mbapp"); var sys=require("sys"); @@ -13,7 +14,7 @@ setting = app.get("setting"); items=[video,audio,picture,setting]; item = 0; -an = new animate.scale(app,items[item],1,2,10); +an = new animate.scale(app,items[item],1,1.5,0.1); an.start(); app.addKeyListener(mbapp.KEY_UP, function() { @@ -26,7 +27,7 @@ var target = items[item]; var an = new animate.scale(app,old,1,1,0.1); an.start(); - an = new animate.scale(app,target,1,2,0.3); + an = new animate.scale(app,target,1,1.5,0.3); an.start(); }); @@ -40,7 +41,7 @@ var target = items[item]; var an = new animate.scale(app,old,1,1,0.1); an.start(); - an = new animate.scale(app,target,1,2,0.3); + an = new animate.scale(app,target,1,1.5,0.3); an.start(); });