# HG changeset patch # User wycc # Date 1283277700 -28800 # Node ID f84ccf1f59ae87124a7fe49e87046e962e0b63c2 # Parent 76470d692bb9f562646cfa9b883ecc04736813ff Add icons for the menu demo diff -r 76470d692bb9 -r f84ccf1f59ae nodejs/desktop.svg --- 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" /> + + + diff -r 76470d692bb9 -r f84ccf1f59ae nodejs/music.png Binary file nodejs/music.png has changed diff -r 76470d692bb9 -r f84ccf1f59ae nodejs/photo.png Binary file nodejs/photo.png has changed diff -r 76470d692bb9 -r f84ccf1f59ae nodejs/testdesktop.js --- 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(); }); diff -r 76470d692bb9 -r f84ccf1f59ae nodejs/tool.png Binary file nodejs/tool.png has changed