gnome-applets r10804 - in trunk/invest-applet: . data data/art invest



Author: callum
Date: Mon Apr 21 05:24:15 2008
New Revision: 10804
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10804&view=rev

Log:
Move the indicator into the main icon.

Added:
   trunk/invest-applet/data/art/invest-16_down.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-16_neutral.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-16_up.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-22_down.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-22_neutral.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-22_up.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-48_down.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-48_neutral.png   (contents, props changed)
   trunk/invest-applet/data/art/invest-48_up.png   (contents, props changed)
   trunk/invest-applet/data/art/invest_down.svg
   trunk/invest-applet/data/art/invest_neutral.svg
   trunk/invest-applet/data/art/invest_up.svg
Removed:
   trunk/invest-applet/data/art/invest-16.png
   trunk/invest-applet/data/art/invest-big.png
   trunk/invest-applet/data/art/invest-button.png
   trunk/invest-applet/data/art/invest-simple.svg
   trunk/invest-applet/data/art/invest.svg
Modified:
   trunk/invest-applet/ChangeLog
   trunk/invest-applet/data/Invest_Applet.server.in.in
   trunk/invest-applet/data/art/Makefile.am
   trunk/invest-applet/invest/about.py
   trunk/invest-applet/invest/applet.py
   trunk/invest-applet/invest/chart.py

Modified: trunk/invest-applet/data/Invest_Applet.server.in.in
==============================================================================
--- trunk/invest-applet/data/Invest_Applet.server.in.in	(original)
+++ trunk/invest-applet/data/Invest_Applet.server.in.in	Mon Apr 21 05:24:15 2008
@@ -19,7 +19,7 @@
         <oaf_attribute name="name" type="string" _value="Invest"/>
         <oaf_attribute name="description" type="string" _value="Track your invested money."/>
         <oaf_attribute name="panel:category" type="string" value="Accessories"/>
-        <oaf_attribute name="panel:icon" type="string" value="invest-big.png"/>
+        <oaf_attribute name="panel:icon" type="string" value="invest-48_neutral.png"/>
 </oaf_server>
 
 </oaf_info>

Modified: trunk/invest-applet/data/art/Makefile.am
==============================================================================
--- trunk/invest-applet/data/art/Makefile.am	(original)
+++ trunk/invest-applet/data/art/Makefile.am	Mon Apr 21 05:24:15 2008
@@ -2,13 +2,14 @@
 # Images and icon
 # ******************************************************************************
 pixmapsdir = $(datadir)/pixmaps
-pixmaps_DATA = invest-big.png
+pixmaps_DATA = invest-48_neutral.png
 
 artdir = $(pkgdatadir)/invest-applet
-art_DATA = invest-button.png invest-16.png invest.svg
+art_DATA = invest-16_neutral.png invest-22_neutral.png invest_neutral.svg \
+	invest-22_up.png invest_up.svg \
+	invest-22_down.png invest_down.svg
 
 EXTRA_DIST = \
 	$(pixmaps_DATA) \
-	$(art_DATA) \
-	invest-simple.svg
+	$(art_DATA)
 	

Added: trunk/invest-applet/data/art/invest-16_down.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-16_neutral.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-16_up.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-22_down.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-22_neutral.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-22_up.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-48_down.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-48_neutral.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest-48_up.png
==============================================================================
Binary file. No diff available.

Added: trunk/invest-applet/data/art/invest_down.svg
==============================================================================
--- (empty file)
+++ trunk/invest-applet/data/art/invest_down.svg	Mon Apr 21 05:24:15 2008
@@ -0,0 +1,254 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="48"
+   height="48"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docbase="/home/matteo/Desktop"
+   sodipodi:docname="invest_down.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   inkscape:export-filename="/home/matteo/src/invest-applet/data/art/invest-16_up.png"
+   inkscape:export-xdpi="30"
+   inkscape:export-ydpi="30">
+  <defs
+     id="defs4">
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient12331"
+       id="linearGradient12337"
+       x1="34.683384"
+       y1="20.48699"
+       x2="11.422583"
+       y2="28.820749"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(0.193,-1.072578)" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient12270">
+      <stop
+         style="stop-color:#73d216;stop-opacity:1;"
+         offset="0"
+         id="stop12272" />
+      <stop
+         style="stop-color:#73d216;stop-opacity:0;"
+         offset="1"
+         id="stop12274" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient12270"
+       id="linearGradient4575"
+       gradientUnits="userSpaceOnUse"
+       x1="25.339476"
+       y1="28.820749"
+       x2="9.7810841"
+       y2="36.7757"
+       gradientTransform="translate(-0.109,-0.6278634)" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4542">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4544" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0;"
+         offset="1"
+         id="stop4546" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4404">
+      <stop
+         style="stop-color:#555753;stop-opacity:1;"
+         offset="0"
+         id="stop4406" />
+      <stop
+         style="stop-color:#555753;stop-opacity:0;"
+         offset="1"
+         id="stop4408" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective2545" />
+    <linearGradient
+       id="linearGradient12331">
+      <stop
+         style="stop-color:#cc0000;stop-opacity:1;"
+         offset="0"
+         id="stop12333" />
+      <stop
+         style="stop-color:#cc0000;stop-opacity:0;"
+         offset="1"
+         id="stop12335" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient15662">
+      <stop
+         id="stop15664"
+         offset="0.0000000"
+         style="stop-color:#ffffff;stop-opacity:1.0000000;" />
+      <stop
+         id="stop15666"
+         offset="1.0000000"
+         style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4404"
+       id="linearGradient4410"
+       x1="24"
+       y1="40"
+       x2="24"
+       y2="4"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4542"
+       id="radialGradient4422"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.284916,0,30.08928)"
+       cx="24.306795"
+       cy="42.07798"
+       fx="24.306795"
+       fy="42.07798"
+       r="15.821514" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7.9195959"
+     inkscape:cx="26.747024"
+     inkscape:cy="27.073797"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer3"
+     width="48px"
+     height="48px"
+     showgrid="true"
+     showguides="true"
+     inkscape:window-width="1164"
+     inkscape:window-height="723"
+     inkscape:window-x="44"
+     inkscape:window-y="49">
+    <inkscape:grid
+       id="GridFromPre046Settings"
+       type="xygrid"
+       originx="0px"
+       originy="4px"
+       spacingx="4px"
+       spacingy="4px"
+       color="#0000ff"
+       empcolor="#0000ff"
+       opacity="0.2"
+       empopacity="0.4"
+       empspacing="5" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="grid"
+     style="opacity:1;display:inline">
+    <path
+       sodipodi:type="arc"
+       style="opacity:0.56725147;fill:url(#radialGradient4422);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+       id="path3667"
+       sodipodi:cx="24.306795"
+       sodipodi:cy="42.07798"
+       sodipodi:rx="15.821514"
+       sodipodi:ry="4.5078058"
+       d="M 40.128309,42.07798 A 15.821514,4.5078058 0 1 1 8.485281,42.07798 A 15.821514,4.5078058 0 1 1 40.128309,42.07798 z"
+       transform="matrix(1.169294,0,0,0.776431,-4.4217897,9.3293517)" />
+    <rect
+       style="opacity:1;fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.97529721;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect4414"
+       width="40.024704"
+       height="38.024704"
+       x="3.9876485"
+       y="4.9876475"
+       rx="1.1497579"
+       ry="1.0923053" />
+    <g
+       id="g4389"
+       style="stroke:url(#linearGradient4410)">
+      <path
+         id="path9976"
+         d="M 3.9999997,34 L 44,34"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path9978"
+         d="M 31.5,6.0392526 L 31.5,42.960747"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1.03851116;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10951"
+         d="M 17.500226,5.9722891 L 17.500226,42.958359"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1.03963912;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10953"
+         d="M 3.9999997,24 L 44,24"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10955"
+         d="M 3.9999998,14 L 44,14"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+    </g>
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="chart"
+     style="display:inline;opacity:1">
+    <path
+       style="fill:url(#linearGradient12337);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 4.192604,30.927422 L 11.077114,33.362706 L 17.160757,20.825897 L 24.003596,25.240875 L 31.725963,13.966757 L 44.193396,35.802428 L 44.193,41.791 L 4.066731,41.791 L 4.192604,30.927422 z"
+       id="path12268"
+       sodipodi:nodetypes="ccccccccc" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#a40000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 44,36 L 31.732972,13.5429 L 24.026122,25.700903 L 17.374471,20.52831 L 11.015968,34.075272 L 4.193,18.764981"
+       id="path10957"
+       sodipodi:nodetypes="cccccc" />
+  </g>
+  <g
+     inkscape:label="frame"
+     inkscape:groupmode="layer"
+     id="layer1"
+     style="opacity:1;display:inline">
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:2.59299994;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 3.9469113,5.296369 L 3.9469113,42.703631 L 44.053088,42.703631 L 43.95386,5.4035875 L 3.9469113,5.296369 z"
+       id="path5099" />
+  </g>
+</svg>

Added: trunk/invest-applet/data/art/invest_neutral.svg
==============================================================================
--- (empty file)
+++ trunk/invest-applet/data/art/invest_neutral.svg	Mon Apr 21 05:24:15 2008
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="48"
+   height="48"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docbase="/home/matteo/Desktop"
+   sodipodi:docname="invest_neutral.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   inkscape:export-filename="/home/matteo/src/invest-applet/data/art/invest_neutral.png"
+   inkscape:export-xdpi="41.25"
+   inkscape:export-ydpi="41.25">
+  <defs
+     id="defs4">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4542">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4544" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0;"
+         offset="1"
+         id="stop4546" />
+    </linearGradient>
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4542"
+       id="radialGradient4548"
+       cx="24.306795"
+       cy="42.07798"
+       fx="24.306795"
+       fy="42.07798"
+       r="15.821514"
+       gradientTransform="matrix(1,0,0,0.284916,0,30.08928)"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4404">
+      <stop
+         style="stop-color:#555753;stop-opacity:1;"
+         offset="0"
+         id="stop4406" />
+      <stop
+         style="stop-color:#555753;stop-opacity:0;"
+         offset="1"
+         id="stop4408" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective2545" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient13447">
+      <stop
+         style="stop-color:#75507b;stop-opacity:1;"
+         offset="0"
+         id="stop13449" />
+      <stop
+         style="stop-color:#75507b;stop-opacity:0;"
+         offset="1"
+         id="stop13451" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient12331">
+      <stop
+         style="stop-color:#cc0000;stop-opacity:1;"
+         offset="0"
+         id="stop12333" />
+      <stop
+         style="stop-color:#cc0000;stop-opacity:0;"
+         offset="1"
+         id="stop12335" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient15662">
+      <stop
+         id="stop15664"
+         offset="0.0000000"
+         style="stop-color:#ffffff;stop-opacity:1.0000000;" />
+      <stop
+         id="stop15666"
+         offset="1.0000000"
+         style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient13447"
+       id="linearGradient13453"
+       x1="38.218918"
+       y1="30.108185"
+       x2="8.2662506"
+       y2="36.926712"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient13447"
+       id="linearGradient4328"
+       gradientUnits="userSpaceOnUse"
+       x1="38.218918"
+       y1="30.108185"
+       x2="8.2662506"
+       y2="36.926712"
+       gradientTransform="translate(0.609152,-2.95805e-2)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4404"
+       id="linearGradient4410"
+       x1="24"
+       y1="40"
+       x2="24"
+       y2="4"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4542"
+       id="radialGradient4422"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.284916,0,30.08928)"
+       cx="24.306795"
+       cy="42.07798"
+       fx="24.306795"
+       fy="42.07798"
+       r="15.821514" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7.9195959"
+     inkscape:cx="12.356615"
+     inkscape:cy="27.073797"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer2"
+     width="48px"
+     height="48px"
+     showgrid="true"
+     showguides="true"
+     inkscape:window-width="1164"
+     inkscape:window-height="723"
+     inkscape:window-x="44"
+     inkscape:window-y="49">
+    <inkscape:grid
+       id="GridFromPre046Settings"
+       type="xygrid"
+       originx="0px"
+       originy="4px"
+       spacingx="4px"
+       spacingy="4px"
+       color="#0000ff"
+       empcolor="#0000ff"
+       opacity="0.2"
+       empopacity="0.4"
+       empspacing="5" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="grid"
+     style="display:inline;opacity:1">
+    <path
+       sodipodi:type="arc"
+       style="opacity:0.56725147;fill:url(#radialGradient4422);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+       id="path3667"
+       sodipodi:cx="24.306795"
+       sodipodi:cy="42.07798"
+       sodipodi:rx="15.821514"
+       sodipodi:ry="4.5078058"
+       d="M 40.128309,42.07798 A 15.821514,4.5078058 0 1 1 8.485281,42.07798 A 15.821514,4.5078058 0 1 1 40.128309,42.07798 z"
+       transform="matrix(1.169294,0,0,0.776431,-4.4217897,9.3293517)" />
+    <rect
+       style="opacity:1;fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.97529721;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect4414"
+       width="40.024704"
+       height="38.024704"
+       x="3.9876485"
+       y="4.9876475"
+       rx="1.1497579"
+       ry="1.0923053" />
+    <g
+       id="g4389"
+       style="stroke:url(#linearGradient4410)">
+      <path
+         id="path9976"
+         d="M 3.9999997,34 L 44,34"
+         style="fill-rule:evenodd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline;stroke:url(#linearGradient4410)" />
+      <path
+         id="path9978"
+         d="M 31.5,6.0392526 L 31.5,42.960747"
+         style="fill-rule:evenodd;stroke-width:1.03851116000000010;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline;stroke:url(#linearGradient4410)" />
+      <path
+         id="path10951"
+         d="M 17.500226,5.9722891 L 17.500226,42.958359"
+         style="fill-rule:evenodd;stroke-width:1.03963911999999992;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline;stroke:url(#linearGradient4410)" />
+      <path
+         id="path10953"
+         d="M 3.9999997,24 L 44,24"
+         style="fill-rule:evenodd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline;stroke:url(#linearGradient4410)" />
+      <path
+         id="path10955"
+         d="M 3.9999998,14 L 44,14"
+         style="fill-rule:evenodd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline;stroke:url(#linearGradient4410)" />
+    </g>
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="chart"
+     style="display:inline">
+    <path
+       style="fill:url(#linearGradient4328);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline"
+       d="M 4.9875634,21.490087 L 11.493266,34.405704 L 17.576909,21.868895 L 24.798555,30.324483 L 32.77346,15.009754 L 44.609548,19.041487 L 44.609152,42.833998 L 4.4828832,42.833998 L 4.9875634,21.490087 z"
+       id="path12268"
+       sodipodi:nodetypes="ccccccccc" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#5c3566;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;display:inline"
+       d="M 43.503925,20.051641 L 32.432856,14.459629 L 24.09466,30.658242 L 17.190471,21.571308 L 10.831968,35.11827 L 4.009,19.807979"
+       id="path10957"
+       sodipodi:nodetypes="cccccc" />
+  </g>
+  <g
+     inkscape:label="frame"
+     inkscape:groupmode="layer"
+     id="layer1"
+     style="display:inline;opacity:1">
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:2.59299999999999997;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 3.9469113,5.296369 L 3.9469113,42.703631 L 44.053088,42.703631 L 43.95386,5.4035875 L 3.9469113,5.296369 z"
+       id="path5099" />
+  </g>
+</svg>

Added: trunk/invest-applet/data/art/invest_up.svg
==============================================================================
--- (empty file)
+++ trunk/invest-applet/data/art/invest_up.svg	Mon Apr 21 05:24:15 2008
@@ -0,0 +1,266 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="48"
+   height="48"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docbase="/home/matteo/Desktop"
+   sodipodi:docname="invest_up.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   inkscape:export-filename="/home/matteo/src/invest-applet/data/art/invest-48_neutral.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs4">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient12270">
+      <stop
+         style="stop-color:#73d216;stop-opacity:1;"
+         offset="0"
+         id="stop12272" />
+      <stop
+         style="stop-color:#73d216;stop-opacity:0;"
+         offset="1"
+         id="stop12274" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient12270"
+       id="linearGradient4575"
+       gradientUnits="userSpaceOnUse"
+       x1="25.339476"
+       y1="28.820749"
+       x2="9.7810841"
+       y2="36.7757"
+       gradientTransform="translate(-0.109,-0.6278634)" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4542">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4544" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0;"
+         offset="1"
+         id="stop4546" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4404">
+      <stop
+         style="stop-color:#555753;stop-opacity:1;"
+         offset="0"
+         id="stop4406" />
+      <stop
+         style="stop-color:#555753;stop-opacity:0;"
+         offset="1"
+         id="stop4408" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective2545" />
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient13447">
+      <stop
+         style="stop-color:#75507b;stop-opacity:1;"
+         offset="0"
+         id="stop13449" />
+      <stop
+         style="stop-color:#75507b;stop-opacity:0;"
+         offset="1"
+         id="stop13451" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient12331">
+      <stop
+         style="stop-color:#cc0000;stop-opacity:1;"
+         offset="0"
+         id="stop12333" />
+      <stop
+         style="stop-color:#cc0000;stop-opacity:0;"
+         offset="1"
+         id="stop12335" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient15662">
+      <stop
+         id="stop15664"
+         offset="0.0000000"
+         style="stop-color:#ffffff;stop-opacity:1.0000000;" />
+      <stop
+         id="stop15666"
+         offset="1.0000000"
+         style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient13447"
+       id="linearGradient4328"
+       gradientUnits="userSpaceOnUse"
+       x1="38.218918"
+       y1="30.108185"
+       x2="8.2662506"
+       y2="36.926712"
+       gradientTransform="translate(0.609152,-2.95805e-2)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4404"
+       id="linearGradient4410"
+       x1="24"
+       y1="40"
+       x2="24"
+       y2="4"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4542"
+       id="radialGradient4422"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.284916,0,30.08928)"
+       cx="24.306795"
+       cy="42.07798"
+       fx="24.306795"
+       fy="42.07798"
+       r="15.821514" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7.9195959"
+     inkscape:cx="26.747024"
+     inkscape:cy="27.073797"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer3"
+     width="48px"
+     height="48px"
+     showgrid="true"
+     showguides="true"
+     inkscape:window-width="1164"
+     inkscape:window-height="723"
+     inkscape:window-x="44"
+     inkscape:window-y="49">
+    <inkscape:grid
+       id="GridFromPre046Settings"
+       type="xygrid"
+       originx="0px"
+       originy="4px"
+       spacingx="4px"
+       spacingy="4px"
+       color="#0000ff"
+       empcolor="#0000ff"
+       opacity="0.2"
+       empopacity="0.4"
+       empspacing="5" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="grid"
+     style="opacity:1;display:inline">
+    <path
+       sodipodi:type="arc"
+       style="opacity:0.56725147;fill:url(#radialGradient4422);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+       id="path3667"
+       sodipodi:cx="24.306795"
+       sodipodi:cy="42.07798"
+       sodipodi:rx="15.821514"
+       sodipodi:ry="4.5078058"
+       d="M 40.128309,42.07798 A 15.821514,4.5078058 0 1 1 8.485281,42.07798 A 15.821514,4.5078058 0 1 1 40.128309,42.07798 z"
+       transform="matrix(1.169294,0,0,0.776431,-4.4217897,9.3293517)" />
+    <rect
+       style="opacity:1;fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.97529721;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect4414"
+       width="40.024704"
+       height="38.024704"
+       x="3.9876485"
+       y="4.9876475"
+       rx="1.1497579"
+       ry="1.0923053" />
+    <g
+       id="g4389"
+       style="stroke:url(#linearGradient4410)">
+      <path
+         id="path9976"
+         d="M 3.9999997,34 L 44,34"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path9978"
+         d="M 31.5,6.0392526 L 31.5,42.960747"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1.03851116;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10951"
+         d="M 17.500226,5.9722891 L 17.500226,42.958359"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1.03963912;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10953"
+         d="M 3.9999997,24 L 44,24"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+      <path
+         id="path10955"
+         d="M 3.9999998,14 L 44,14"
+         style="fill-rule:evenodd;stroke:url(#linearGradient4410);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:inline" />
+    </g>
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="chart"
+     style="display:inline;opacity:1">
+    <path
+       style="fill:url(#linearGradient4575);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 3.890604,31.372137 L 10.143769,14.361984 L 17.237564,31.245868 L 23.827865,19.372137 L 31.80277,35.372137 L 45.154087,8.0891408 L 45.27996,42.109446 L 3.764731,42.235715 L 3.890604,31.372137 z"
+       id="path12268"
+       sodipodi:nodetypes="ccccccccc" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#4e9a06;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 4,32 L 10.163843,12.973025 L 17.365618,31.372137 L 23.891,19.372137 L 31.512193,35.624675 L 43.891,7.3721366"
+       id="path10957"
+       sodipodi:nodetypes="cccccc" />
+  </g>
+  <g
+     inkscape:label="frame"
+     inkscape:groupmode="layer"
+     id="layer1"
+     style="opacity:1;display:inline">
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:2.59299994;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 3.9469113,5.296369 L 3.9469113,42.703631 L 44.053088,42.703631 L 43.95386,5.4035875 L 3.9469113,5.296369 z"
+       id="path5099" />
+  </g>
+</svg>

Modified: trunk/invest-applet/invest/about.py
==============================================================================
--- trunk/invest-applet/invest/about.py	(original)
+++ trunk/invest-applet/invest/about.py	Mon Apr 21 05:24:15 2008
@@ -17,7 +17,7 @@
 
 invest_logo = None
 try:
-	invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest.svg"), 96,96)
+	invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest_neutral.svg"), 96, 96)
 except Exception, msg:
 	pass
 	

Modified: trunk/invest-applet/invest/applet.py
==============================================================================
--- trunk/invest-applet/invest/applet.py	(original)
+++ trunk/invest-applet/invest/applet.py	Mon Apr 21 05:24:15 2008
@@ -19,25 +19,17 @@
 					])
 
 		evbox = gtk.HBox()
-		applet_icon = gtk.Image()
-		try:
-			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-button.png"), -1,-1)
-			applet_icon.set_from_pixbuf(pixbuf)
-		except Exception, msg:
-			applet_icon.set_from_icon_name("stock_chart-autoformat", gtk.ICON_SIZE_BUTTON)
-	
-		applet_icon.show()
-		evbox.add(applet_icon)
-		self.investments_change_icon = gtk.Image()
-		evbox.add(self.investments_change_icon)
-                self.set_investments_change_icon(0)
+		self.applet_icon = gtk.Image()
+		self.set_applet_icon(0)
+		self.applet_icon.show()
+		evbox.add(self.applet_icon)
 		self.applet.add(evbox)
 		self.applet.connect("button-press-event",self.button_clicked)
 		self.applet.show_all()
 		self.new_ilw()
 
 	def new_ilw(self):
-		self.quotes_updater = QuoteUpdater(self.set_investments_change_icon)
+		self.quotes_updater = QuoteUpdater(self.set_applet_icon)
 		self.investwidget = InvestWidget(self.quotes_updater)
 		self.ilw = InvestmentsListWindow(self.applet, self.investwidget)
 
@@ -56,13 +48,14 @@
 	def on_refresh(self, component, verb):
 		self.quotes_updater.refresh()
 
-	def set_investments_change_icon(self, change):
+	def set_applet_icon(self, change):
 		if change == 1:
-			self.investments_change_icon.set_from_stock(gtk.STOCK_GO_UP, gtk.ICON_SIZE_MENU)
+			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-22_up.png"), -1,-1)
 		elif change == 0:
-                        self.investments_change_icon.set_from_stock(gtk.STOCK_REMOVE, gtk.ICON_SIZE_MENU)
+			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-22_neutral.png"), -1,-1)
 		else:
-                        self.investments_change_icon.set_from_stock(gtk.STOCK_GO_DOWN, gtk.ICON_SIZE_MENU)
+			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-22_down.png"), -1,-1)
+		self.applet_icon.set_from_pixbuf(pixbuf)
 
 class InvestmentsListWindow(gtk.Window):
 	def __init__(self, applet, list):

Modified: trunk/invest-applet/invest/chart.py
==============================================================================
--- trunk/invest-applet/invest/chart.py	(original)
+++ trunk/invest-applet/invest/chart.py	Mon Apr 21 05:24:15 2008
@@ -54,9 +54,9 @@
 		win.set_title(_("Financial Chart"))
 		
 		try:
-			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-16.png"), -1,-1)
+			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest-16_neutral.png"), -1,-1)
 			win.set_icon(pixbuf)
-			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest.svg"), 96,96)
+			pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest_neutral.svg"), 96,96)
 			self.ui.get_object("plot").set_from_pixbuf(pixbuf)
 		except Exception, msg:
 			pass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]