[shotwell/wip/phako/dark: 14/16] Replace redeye icon with symbolic version



commit b18637ef04c2500af7919044d9f97959d498fca2
Author: Jens Georg <mail jensge org>
Date:   Thu Apr 12 22:37:22 2018 +0200

    Replace redeye icon with symbolic version

 icons/redeye.png                 |  Bin 5337 -> 0 bytes
 icons/stock-eye-symbolic.svg     |  109 ++++++++++++++++++++++++++++++++++++++
 org.gnome.Shotwell.gresource.xml |    2 +-
 src/PhotoPage.vala               |    2 +-
 src/Resources.vala               |    1 -
 5 files changed, 111 insertions(+), 3 deletions(-)
---
diff --git a/icons/stock-eye-symbolic.svg b/icons/stock-eye-symbolic.svg
new file mode 100644
index 0000000..759dc7e
--- /dev/null
+++ b/icons/stock-eye-symbolic.svg
@@ -0,0 +1,109 @@
+<?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";
+   sodipodi:docname="stock-eye-symbolic.svg"
+   height="16"
+   id="svg7384"
+   version="1.1"
+   inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
+   width="16">
+  <metadata
+     id="metadata90">
+    <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>Gnome Symbolic Icon Theme</dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     inkscape:bbox-nodes="true"
+     inkscape:bbox-paths="true"
+     bordercolor="#666666"
+     borderopacity="1"
+     inkscape:current-layer="layer1"
+     inkscape:cx="10.923913"
+     inkscape:cy="5.25"
+     gridtolerance="10"
+     inkscape:guide-bbox="true"
+     guidetolerance="10"
+     id="namedview88"
+     inkscape:object-nodes="false"
+     inkscape:object-paths="false"
+     objecttolerance="10"
+     pagecolor="#433342"
+     inkscape:pageopacity="1"
+     inkscape:pageshadow="2"
+     showborder="false"
+     showgrid="false"
+     showguides="true"
+     inkscape:snap-bbox="true"
+     inkscape:snap-bbox-midpoints="false"
+     inkscape:snap-global="true"
+     inkscape:snap-grids="true"
+     inkscape:snap-nodes="true"
+     inkscape:snap-others="false"
+     inkscape:snap-page="false"
+     inkscape:snap-to-guides="true"
+     inkscape:window-height="1016"
+     inkscape:window-maximized="1"
+     inkscape:window-width="1920"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:zoom="29.052632">
+    <inkscape:grid
+       empspacing="2"
+       enabled="true"
+       id="grid4866"
+       originx="60"
+       originy="202"
+       snapvisiblegridlinesonly="true"
+       spacingx="1"
+       spacingy="1"
+       type="xygrid"
+       visible="true" />
+  </sodipodi:namedview>
+  <title
+     id="title9167">Gnome Symbolic Icon Theme</title>
+  <defs
+     id="defs7386" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer9"
+     inkscape:label="tools"
+     style="display:inline"
+     transform="translate(-181.0002,-419)" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer10"
+     inkscape:label="preferences"
+     transform="translate(60,-202)" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer1"
+     inkscape:label="stock"
+     transform="translate(60,-202)">
+    <path
+       inkscape:connector-curvature="0"
+       d="m -52,207 c -1.656854,0 -3,1.34315 -3,3 0,1.65685 1.343146,3 3,3 1.656854,0 3,-1.34315 3,-3 
0,-1.65685 -1.343146,-3 -3,-3 z m 0,1.53125 c 0.787268,0 1.4375,0.65408 1.4375,1.46875 0,0.81467 
-0.650232,1.5 -1.4375,1.5 -0.787268,0 -1.4375,-0.68533 -1.4375,-1.5 0,-0.81467 0.650232,-1.46875 
1.4375,-1.46875 z"
+       id="path11920"
+       style="fill:#a40000;fill-opacity:1;stroke:none" />
+    <path
+       inkscape:connector-curvature="0"
+       d="m -52,204 c -4.41828,0 -8,6 -8,6 0,0 3.58172,6 8,6 4.41828,0 8,-6 8,-6 0,0 -3.58172,-6 -8,-6 z m 
0,2 c 3.865993,0 6,4 6,4 0,0 -2.134007,4 -6,4 -3.865993,0 -6,-4 -6,-4 0,0 2.134007,-4 6,-4 z"
+       id="path11928"
+       sodipodi:nodetypes="scscsscscs"
+       style="fill:#bebebe;fill-opacity:1;stroke:none" />
+  </g>
+</svg>
diff --git a/org.gnome.Shotwell.gresource.xml b/org.gnome.Shotwell.gresource.xml
index ee57be0..ad9bb50 100644
--- a/org.gnome.Shotwell.gresource.xml
+++ b/org.gnome.Shotwell.gresource.xml
@@ -68,7 +68,7 @@
       <file>icons/one-star.svg</file>
       <file>icons/one-tag.png</file>
       <file>icons/publish.png</file>
-      <file>icons/redeye.png</file>
+      <file>icons/stock-eye-symbolic.svg</file>
       <file>icons/rejected.svg</file>
       <file>icons/shotwell-16.png</file>
       <file>icons/shotwell.png</file>
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index 32b4c4c..b1a2202 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -464,7 +464,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
 
         // redeye reduction tool
         redeye_button = new Gtk.ToggleToolButton ();
-        redeye_button.set_icon_name("redeye");
+        redeye_button.set_icon_name("stock-eye-symbolic");
         redeye_button.set_label(Resources.RED_EYE_LABEL);
         redeye_button.set_tooltip_text(Resources.RED_EYE_TOOLTIP);
         redeye_button.toggled.connect(on_redeye_toggled);
diff --git a/src/Resources.vala b/src/Resources.vala
index 7b486fa..3cac22d 100644
--- a/src/Resources.vala
+++ b/src/Resources.vala
@@ -71,7 +71,6 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
     public const string HFLIP = "object-flip-horizontal-symbolic";
     public const string VFLIP = "object-flip-vertical-symbolic";
     public const string STRAIGHTEN = "shotwell-straighten";
-    public const string REDEYE = "shotwell-redeye";
     public const string ADJUST = "image-adjust-color-symbolic";
     public const string MAKE_PRIMARY = "shotwell-make-primary";
     public const string IMPORT = "import";


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