[gitg/wip/techlivezh/bug/720734] Use GNOME's default avatar



commit f19141d4db5976af0e5ae1f09d1e9e8000d1cbe3
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Mon Dec 23 22:15:03 2013 +0800

    Use GNOME's default avatar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720734

 libgitg/resources/avatar.png     |  Bin 1267 -> 0 bytes
 libgitg/resources/avatar.svg     |   32 ++++++++++++++++++++++++++++++++
 libgitg/resources/diff-view.html |    2 +-
 libgitg/resources/resources.xml  |    2 +-
 4 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/resources/avatar.svg b/libgitg/resources/avatar.svg
new file mode 100644
index 0000000..3af03a0
--- /dev/null
+++ b/libgitg/resources/avatar.svg
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' 
sodipodi:docname='avatar-default-symbolic.svg' 
inkscape:export-filename='/home/sam/dev/RESOURCES/gnome-icon-theme-symbolic/src/gnome-stencils.png' 
inkscape:export-xdpi='90' inkscape:export-ydpi='90' height='16' id='svg7384' 
xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' 
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' 
xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' 
version='1.1' inkscape:version='0.48.4 r9939' width='16' xmlns='http://www.w3.org/2000/svg'>
+  <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='false' inkscape:bbox-paths='true' bordercolor='#666666' 
borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='213.96757' inkscape:cy='-240.09189' 
gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' 
inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#3a3b39' 
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-to-guides='true' inkscape:window-height='702' inkscape:window-maximized='1' 
inkscape:window-width='1366' inkscape:window-x='0' inkscape:window-y='27' inkscape:zoom='1'>
+    <inkscape:grid empspacing='2' enabled='true' id='grid4866' originx='200px' originy='120px' 
snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' 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='status' style='display:inline' 
transform='translate(-41.0002,-337)'>
+    
+    <path inkscape:connector-curvature='0' d='m 51.55489,345.09373 c -0.70541,0.62353 -1.53918,0.90625 
-2.55469,0.90625 -1.01551,0 -1.85318,-0.29053 -2.55859,-0.91406 -1.10938,0.36328 -2.43603,1.28775 
-2.4375,2.90234 l -0.0039,3.01172 c -7.2e-4,0.554 0.446,1.00002 1,1.00002 l 8,0 c 0.554,0 1,-0.44602 
1,-1.00002 l 0,-3 c 0,-1.38672 -1.10231,-2.5558 -2.44531,-2.90625 z' id='path3940-5' 
sodipodi:nodetypes='csccsssscc' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+    <path sodipodi:cx='49.5' sodipodi:cy='342.5' d='m 52,342.5 a 2.5,2.5 0 1 1 -5,0 2.5,2.5 0 1 1 5,0 z' 
id='path3942-6' sodipodi:rx='2.5' sodipodi:ry='2.5' 
style='color:#bebebe;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate'
 transform='matrix(1.2,0,0,1.2,-10.3998,-69.00003)' sodipodi:type='arc'/>
+  </g>
+  <g inkscape:groupmode='layer' id='layer10' inkscape:label='devices' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='layer11' inkscape:label='apps' transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='layer13' inkscape:label='places' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='layer14' inkscape:label='mimetypes' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='layer15' inkscape:label='emblems' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='g71291' inkscape:label='emotes' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='g4953' inkscape:label='categories' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+  <g inkscape:groupmode='layer' id='layer12' inkscape:label='actions' style='display:inline' 
transform='translate(-41.0002,-337)'/>
+</svg>
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 7087cc8..bc9d2bb 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -10,7 +10,7 @@
       <!-- Commit template -->
       <div class="commit">
         <button class="format_patch_button">Get Patch</button>
-        <img class="avatar" src="avatar.png" />
+        <img class="avatar" src="avatar.svg" />
         <p>
           <span class="author"></span><br/>
           <span class="date"></span>
diff --git a/libgitg/resources/resources.xml b/libgitg/resources/resources.xml
index 813e1c1..3370f17 100644
--- a/libgitg/resources/resources.xml
+++ b/libgitg/resources/resources.xml
@@ -6,7 +6,7 @@
     <file compressed="true">diff-view-html-builder.js</file>
     <file compressed="true">diff-view.css</file>
     <file compressed="true">jquery-2.0.3.min.js</file>
-    <file compressed="true">avatar.png</file>
+    <file compressed="true">avatar.svg</file>
   </gresource>
   <gresource prefix="/org/gnome/gitg/gtk">
     <file compressed="true" preprocess="xml-stripblanks">gitg-repository-list-box-row.ui</file>


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