Have a disabled icon for when the save button is disabled
authorAndy Allan <gravitystorm@gmail.com>
Thu, 2 Dec 2010 17:32:29 +0000 (17:32 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Thu, 2 Dec 2010 17:32:29 +0000 (17:32 +0000)
embedded/save_disabled.svg [new file with mode: 0644]
potlatch2.mxml

diff --git a/embedded/save_disabled.svg b/embedded/save_disabled.svg
new file mode 100644 (file)
index 0000000..93296e6
--- /dev/null
@@ -0,0 +1,107 @@
+<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="24"
+   height="24"
+   id="svg2383"
+   sodipodi:version="0.32"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="save.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs2385">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 16 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="32 : 16 : 1"
+       inkscape:persp3d-origin="16 : 10.666667 : 1"
+       id="perspective2391" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="11.197802"
+     inkscape:cx="0.78164521"
+     inkscape:cy="3.7405397"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1680"
+     inkscape:window-height="1021"
+     inkscape:window-x="1280"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata2388">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <path
+       inkscape:connector-curvature="0"
+       style="fill:#adadad;fill-opacity:1;stroke:none"
+       d="M 0.890625,0 C 0.39202498,0 0,0.39202498 0,0.890625 l 0,22.21875 C 0,23.607975 0.39202498,24 0.890625,24 l 22.21875,0 C 23.607975,24 24,23.607976 24,23.109375 l 0,-2.0625 -1.21875,0 0,-1.476563 1.21875,0 0,-18.679687 C 24,0.39202498 23.607976,0 23.109375,0 L 0.890625,0 z M 12,8.0390625 c 2.181321,0 3.960938,1.7796165 3.960938,3.9609375 0,2.181321 -1.779617,3.960938 -3.960938,3.960938 C 9.818679,15.960938 8.0390625,14.181321 8.0390625,12 8.0390625,9.818679 9.818679,8.0390625 12,8.0390625 z"
+       id="rect3163" />
+    <path
+       sodipodi:type="arc"
+       style="fill:none;stroke:#c1b2b2;stroke-width:1.89999998000000003;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="path3170"
+       sodipodi:cx="-1.2502453"
+       sodipodi:cy="16.550539"
+       sodipodi:rx="5.8047104"
+       sodipodi:ry="5.8047104"
+       d="m 4.5544651,16.550539 a 5.8047104,5.8047104 0 1 1 -11.6094208,0 5.8047104,5.8047104 0 1 1 11.6094208,0 z"
+       transform="matrix(0.68076923,0,0,0.68076923,12.851128,0.7329024)" />
+    <rect
+       style="fill:none;stroke:#c1b3b3;stroke-width:1.42499994999999990;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="rect3175"
+       width="0.937684"
+       height="4.7553973"
+       x="11.531157"
+       y="1.4286062"
+       rx="0.67499995" />
+    <path
+       sodipodi:type="arc"
+       style="fill:#c4b0b0;fill-opacity:1;stroke:none"
+       id="path3177"
+       sodipodi:cx="6.8316979"
+       sodipodi:cy="10.433268"
+       sodipodi:rx="0.22325809"
+       sodipodi:ry="0.22325809"
+       d="m 7.054956,10.433268 a 0.22325809,0.22325809 0 1 1 -0.4465162,0 0.22325809,0.22325809 0 1 1 0.4465162,0 z"
+       transform="matrix(1.9500001,0,0,1.9500001,-7.930128,-12.252012)" />
+    <rect
+       style="fill:#eaeded;fill-opacity:1;stroke:none"
+       id="rect3179"
+       width="9.8016186"
+       height="4.4874878"
+       x="2.8130519"
+       y="18.172964"
+       rx="0.59506577" />
+  </g>
+</svg>
index 2ddcd40..9fc20b2 100644 (file)
@@ -45,7 +45,7 @@
         <mx:Spacer width="100%"/>
         <mx:Button label="Help" click="new HelpDialog().init();" />
         <mx:Button label="Options" click="new OptionsDialog().init();" /> 
-        <mx:Button label="Save" icon="@Embed('embedded/save.svg')" click="SaveManager.saveChanges();" id="saveButton" 
+        <mx:Button label="Save" icon="@Embed('embedded/save.svg')" disabledIcon="@Embed('embedded/save_disabled.svg')" click="SaveManager.saveChanges();" id="saveButton"
                        enabled="false"/>
     </mx:ApplicationControlBar>