Re: [Rhythmbox-devel] svg icon for rhythmbox



elijah wrote:
Attached is a scalable SVG icon for rhythmbox. I created it to be used
in an icon set for gnome (which is to be released soon).

Feel free to use it, abuse it, or ignore it. I release it here under the
GNU General Public License.

-elijah

And here is a patch against HEAD for people to try. If we decide to use it we might want to strip out some of the Illustrator and sodipodi stuff.


It seems OK to me. There seems to be a bit of a color jump where the shaft meets the cube.

Jon
Index: data/Makefile.am
===================================================================
RCS file: /cvs/gnome/rhythmbox/data/Makefile.am,v
retrieving revision 1.32
diff -p -u -r1.32 Makefile.am
--- data/Makefile.am	14 May 2006 00:00:52 -0000	1.32
+++ data/Makefile.am	31 May 2006 12:24:19 -0000
@@ -9,8 +9,8 @@ Multimediadir = $(datadir)/applications
 Multimedia_in_files = rhythmbox.desktop.in
 Multimedia_DATA = $(Multimedia_in_files:.desktop.in=.desktop)
 
-appicon_DATA = rhythmbox.png
-appicondir = $(datadir)/icons/hicolor/48x48/apps
+appicon_DATA = rhythmbox.svg
+appicondir = $(datadir)/icons/hicolor/scalable/apps
 
 schemadir = @GCONF_SCHEMA_FILE_DIR@
 schema_DATA = rhythmbox.schemas
Index: data/rhythmbox.png
===================================================================
RCS file: data/rhythmbox.png
diff -N data/rhythmbox.png
Binary files /tmp/cvskX0GBh and /dev/null differ
Index: data/rhythmbox.svg
===================================================================
RCS file: data/rhythmbox.svg
diff -N data/rhythmbox.svg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ data/rhythmbox.svg	31 May 2006 12:24:20 -0000
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 9.0, SVG Export Plug-In  -->
+<svg
+   xmlns:i="&amp;ns_ai;"
+   xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/";
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://web.resource.org/cc/";
+   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://inkscape.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="128"
+   height="128"
+   viewBox="0 0 70.2 48"
+   xml:space="preserve"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.43"
+   sodipodi:docname="rhythmbox.svg"
+   sodipodi:docbase="/data/img/icons/Chimera/scalable/apps"
+   version="1.0"><metadata
+   id="metadata64"><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><defs
+   id="defs62"><linearGradient
+     inkscape:collect="always"
+     id="linearGradient2682"><stop
+       style="stop-color:#318eed;stop-opacity:1;"
+       offset="0"
+       id="stop2684" /><stop
+       style="stop-color:#318eed;stop-opacity:0;"
+       offset="1"
+       id="stop2686" /></linearGradient><linearGradient
+     id="linearGradient2667"
+     gradientUnits="userSpaceOnUse"
+     x1="40.2617"
+     y1="38.774399"
+     x2="56.649601"
+     y2="19.481501"
+     gradientTransform="matrix(1.20124,9.313526e-2,-9.313526e-2,1.20124,-3.901771,-6.671831)">
+			<stop
+   offset="0"
+   style="stop-color:#086ed4;stop-opacity:1"
+   id="stop2669" />
+			<stop
+   offset="1"
+   style="stop-color:#1a5086;stop-opacity:1"
+   id="stop2671" />
+		</linearGradient><linearGradient
+     id="linearGradient2661"
+     gradientUnits="userSpaceOnUse"
+     x1="9.1348"
+     y1="33.8545"
+     x2="35.352402"
+     y2="35.742802"
+     gradientTransform="matrix(1.20124,9.313526e-2,-9.313526e-2,1.20124,-3.901771,-6.671831)">
+			<stop
+   offset="0"
+   style="stop-color:#b6d8fc;stop-opacity:1"
+   id="stop2663" />
+			<stop
+   offset="1"
+   style="stop-color:#2081e3;stop-opacity:1"
+   id="stop2665" />
+		</linearGradient><linearGradient
+     id="linearGradient2655"
+     gradientUnits="userSpaceOnUse"
+     x1="7.1138"
+     y1="22.435499"
+     x2="57.404301"
+     y2="22.435499"
+     gradientTransform="matrix(1.20124,9.313526e-2,-9.313526e-2,1.20124,-3.901771,-6.671831)">
+			<stop
+   offset="0"
+   style="stop-color:#318eed;stop-opacity:1"
+   id="stop2657" />
+			<stop
+   offset="1"
+   style="stop-color:#78b0e6;stop-opacity:1"
+   id="stop2659" />
+		</linearGradient><linearGradient
+     y2="153.2793"
+     x2="155.7832"
+     y1="153.2793"
+     x1="56.5273"
+     gradientUnits="userSpaceOnUse"
+     id="XMLID_9_">
+      <stop
+   id="stop230"
+   style="stop-color:#0066CC"
+   offset="0" />
+      <stop
+   id="stop231"
+   style="stop-color:#0D73D9"
+   offset="0.1414" />
+      <stop
+   id="stop232"
+   style="stop-color:#2288EE"
+   offset="0.4377" />
+      <stop
+   id="stop233"
+   style="stop-color:#2F95FB"
+   offset="0.7273" />
+      <stop
+   id="stop234"
+   style="stop-color:#3399FF"
+   offset="1" />
+      <a:midPointStop
+   id="midPointStop235"
+   style="stop-color:#0066CC"
+   offset="0" />
+      <a:midPointStop
+   id="midPointStop236"
+   style="stop-color:#0066CC"
+   offset="0.5" />
+      <a:midPointStop
+   id="midPointStop237"
+   style="stop-color:#0D73D9"
+   offset="0.1414" />
+      <a:midPointStop
+   id="midPointStop238"
+   style="stop-color:#0D73D9"
+   offset="0.5" />
+      <a:midPointStop
+   id="midPointStop239"
+   style="stop-color:#2288EE"
+   offset="0.4377" />
+      <a:midPointStop
+   id="midPointStop240"
+   style="stop-color:#2288EE"
+   offset="0.5" />
+      <a:midPointStop
+   id="midPointStop241"
+   style="stop-color:#2F95FB"
+   offset="0.7273" />
+      <a:midPointStop
+   id="midPointStop242"
+   style="stop-color:#2F95FB"
+   offset="0.5" />
+      <a:midPointStop
+   id="midPointStop243"
+   style="stop-color:#3399FF"
+   offset="1" />
+    </linearGradient><linearGradient
+     id="linearGradient10457"><stop
+       id="stop10459"
+       offset="0"
+       style="stop-color:#000000;stop-opacity:0.71428573;" /><stop
+       id="stop10461"
+       offset="1"
+       style="stop-color:#000000;stop-opacity:0;" /></linearGradient><radialGradient
+     inkscape:collect="always"
+     xlink:href="#linearGradient10457"
+     id="radialGradient1519"
+     gradientUnits="userSpaceOnUse"
+     gradientTransform="scale(2.110067,0.473919)"
+     cx="24.734711"
+     cy="210.29031"
+     fx="24.734711"
+     fy="210.29031"
+     r="20.929369" /><linearGradient
+     inkscape:collect="always"
+     xlink:href="#linearGradient2655"
+     id="linearGradient1451"
+     gradientUnits="userSpaceOnUse"
+     gradientTransform="matrix(1.201239,9.313502e-2,-9.313502e-2,1.201239,-78.62458,-1.210217)"
+     x1="7.1138"
+     y1="22.435499"
+     x2="57.404301"
+     y2="22.435499" /><linearGradient
+     inkscape:collect="always"
+     xlink:href="#linearGradient2661"
+     id="linearGradient1453"
+     gradientUnits="userSpaceOnUse"
+     gradientTransform="matrix(1.201239,9.313502e-2,-9.313502e-2,1.201239,-78.62458,23.17908)"
+     x1="9.1348"
+     y1="33.8545"
+     x2="35.352402"
+     y2="35.742802" /><linearGradient
+     inkscape:collect="always"
+     xlink:href="#linearGradient2667"
+     id="linearGradient1455"
+     gradientUnits="userSpaceOnUse"
+     gradientTransform="matrix(1.201239,9.313502e-2,-9.313502e-2,1.201239,-78.62458,23.17908)"
+     x1="40.2617"
+     y1="38.774399"
+     x2="56.649601"
+     y2="19.481501" /><linearGradient
+     inkscape:collect="always"
+     xlink:href="#linearGradient2682"
+     id="linearGradient2688"
+     x1="41.114994"
+     y1="25.663067"
+     x2="39.540573"
+     y2="27.765575"
+     gradientUnits="userSpaceOnUse"
+     gradientTransform="matrix(1.149823,0,0,1.149823,-5.600227,-7.785276)" /><linearGradient
+     inkscape:collect="always"
+     xlink:href="#XMLID_9_"
+     id="linearGradient1363"
+     gradientUnits="userSpaceOnUse"
+     x1="56.5273"
+     y1="153.2793"
+     x2="155.7832"
+     y2="153.2793" /></defs><sodipodi:namedview
+   inkscape:window-height="845"
+   inkscape:window-width="976"
+   inkscape:pageshadow="2"
+   inkscape:pageopacity="0.0"
+   borderopacity="1.0"
+   bordercolor="#666666"
+   pagecolor="#ffffff"
+   id="base"
+   inkscape:zoom="1.6791668"
+   inkscape:cx="84.525637"
+   inkscape:cy="75.877123"
+   inkscape:window-x="157"
+   inkscape:window-y="26"
+   inkscape:current-layer="svg2"
+   showguides="true"
+   inkscape:guide-bbox="true" />
+	
+	
+<path
+   transform="matrix(0.652623,-1.012138e-2,-1.190379e-2,0.995652,-5.527078,-49.10187)"
+   d="M 96.354244 99.660515 A 44.162361 9.9188194 0 1 1  8.0295219,99.660515 A 44.162361 9.9188194 0 1 1  96.354244 99.660515 z"
+   sodipodi:ry="9.9188194"
+   sodipodi:rx="44.162361"
+   sodipodi:cy="99.660515"
+   sodipodi:cx="52.191883"
+   id="path9697"
+   style="opacity:0.60792954;fill:url(#radialGradient1519);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;overflow:visible"
+   sodipodi:type="arc" /><g
+   transform="matrix(0.558237,0,0,0.558237,-21.32091,-62.85522)"
+   style="overflow:visible"
+   id="g1470"><path
+     i:knockout="Off"
+     style="stroke:none"
+     d="M 109.226,96.938 C 109.226,96.938 109.28546,155.54385 109.28546,164.27185 L 122.22765,184.46131 C 122.22765,183.92345 122.22821,170.77077 122.33219,155.21621 C 122.43617,139.66165 122.023,120.5675 122.023,116.421 C 122.883,116.983 123.743,117.596 124.623,118.241 C 127.482,120.336 130.723,122.711 135,123.383 C 142.189,124.513 148.346,122.238 154.299,120.037 L 156.79,119.127 L 154.913,113.43 C 148.439,115.391 143.695,111.184 138.202,106.313 C 133.668,102.292 128.577,97.84 122.022,97.099 C 122.022,97.086 122.022,96.957 122.022,96.957 C 122.022,96.957 121.132,96.957 120.285,96.957 C 120.064,96.955 119.845,96.95 119.62,96.957 C 119.429,96.957 117.532,96.957 117.532,96.957 L 112.224,96.937 L 109.226,96.937 L 109.226,96.938 z "
+     id="path228"
+     sodipodi:nodetypes="cccscsscccsccsscccc" /><path
+     style="fill:url(#linearGradient1363);stroke:none"
+     d="M 119.621,99.958 L 119.022,100.176 L 119.022,99.958 L 117.533,99.958 L 117.533,99.938 L 112.225,99.938 L 112.0394,166.6191 L 119.11331,169.74734 L 119.022,111.665 C 125.005,113.331 128.892,119.386 135.465,120.419 C 142.843,121.579 149.33,118.599 155.782,116.301 C 140.757,120.853 133.91,99.409 119.621,99.958 z "
+     id="path244"
+     sodipodi:nodetypes="cccccccccscc" /></g><g
+   id="g1756"
+   transform="matrix(0.598672,0,0,0.598672,51.98553,8.02527)"><path
+     sodipodi:nodetypes="ccccccccccccccccsccc"
+     style="fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     d="M -48.019174,13.765002 C -48.019174,13.765002 -48.019174,13.765002 -48.133788,13.765002 C -48.248402,13.87748 -72.197357,27.369502 -72.197357,27.369502 L -72.197357,27.369502 C -73.801941,28.381802 -75.177299,29.844012 -75.406526,31.981092 C -75.406526,32.206047 -75.406526,32.543479 -75.406526,32.880914 L -75.406526,32.880914 L -74.925577,63.699339 C -74.810964,65.836418 -73.435606,66.848714 -72.633314,67.186151 C -72.633314,67.186151 -73.115527,67.790364 -72.518701,67.186151 C -72.518701,67.186151 -39.584928,79.881267 -39.584928,79.881267 C -37.521891,80.668609 -35.229629,80.218698 -33.739656,78.868962 L -9.9040532,61.265495 C -8.5286947,60.028238 -8.4140817,58.790982 -8.2994697,58.34107 L -8.4132986,32.442026 C -8.4132986,31.767158 -8.2986856,26.870469 -8.6425286,25.633213 C -8.8717531,24.845869 -18.037227,26.131941 -18.0538,23.950791 L -18.085402,19.79172 L -43.090809,13.540047 C -44.351556,13.202614 -45.726912,12.86518 -48.019174,13.765002 z "
+     id="path10" /><path
+     sodipodi:nodetypes="ccscsssccc"
+     style="fill:url(#linearGradient1451);fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     d="M -42.884766,15.251092 C -44.210105,14.769151 -45.896899,14.769151 -46.740297,15.010122 C -47.463209,15.251092 -70.234941,28.383996 -71.439795,29.106907 C -72.644648,29.829821 -72.885619,31.275644 -71.319309,31.757586 C -69.753,32.360013 -40.113602,41.878355 -38.788263,42.239811 C -37.462925,42.601269 -35.535159,42.601269 -34.812246,41.998841 C -34.089334,41.396415 -12.317404,26.019412 -11.594492,25.416986 C -10.871576,24.814558 -11.920032,23.685067 -13.004396,23.444097 C -14.088766,23.08264 -41.559427,15.612549 -42.884766,15.130607 L -42.884766,15.251092 z "
+     id="path17" /><path
+     sodipodi:nodetypes="ccssccccc"
+     style="fill:url(#linearGradient1453);fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     d="M -73.488045,34.211396 C -73.608531,33.127027 -72.765134,32.524601 -71.921736,32.765571 C -71.198824,33.006542 -39.842166,42.907062 -38.637313,43.629974 C -37.432459,44.352888 -36.709547,44.714341 -36.830032,45.678225 C -36.950517,46.642108 -36.740012,75.785999 -36.860498,76.508911 C -36.980982,77.352308 -37.58341,78.195706 -38.788263,77.954733 C -42.402824,77.111336 -71.921736,65.424261 -71.921736,65.424261 C -72.885619,65.062805 -73.12659,64.460378 -73.12659,63.376009 L -73.488045,34.211396 z "
+     id="path24" /><path
+     sodipodi:nodetypes="csssssccc"
+     style="fill:url(#linearGradient1455);fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     d="M -35.535159,77.472794 C -36.137586,77.954733 -36.536407,77.489417 -36.415922,76.405048 C -36.295436,75.320684 -36.151407,46.684406 -36.030922,45.720522 C -35.910436,44.756644 -36.130686,43.913244 -35.407773,43.310817 C -34.684862,42.708391 -12.059198,27.742623 -11.2158,27.019712 C -10.372403,26.296801 -10.096128,27.964911 -10.216614,28.687824 C -10.3371,29.410735 -10.715176,56.8698 -10.835662,57.472228 C -10.835662,58.195139 -10.956148,58.556594 -11.67906,59.159022 C -12.281485,59.761449 -34.932733,76.99085 -35.535159,77.472794 z "
+     id="path31" /><g
+     transform="matrix(1.204855,0,0,1.204855,-80.11474,18.52555)"
+     style="fill:#ffffff;fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     id="g33"><path
+       sodipodi:nodetypes="ccccccccccccc"
+       d="M 35.5,19.523604 C 33.8,19.323604 6.8,10.608097 6.5,10.508097 C 6.3,10.408097 6.5,9.5080968 7.1,8.9080968 C 5.4,10.008097 5.4,12.008097 5.4,12.008097 C 5.4,12.008097 6.0551895,11.904679 6.8551895,11.804679 C 10.15519,13.004679 33.1,20.535692 34,20.835692 C 35,21.135692 35.129304,22.108097 35.129304,23.008097 L 36.082802,49.329492 L 36.370696,23.008097 C 36.470696,22.108097 36.472405,20.735692 37.472405,20.035692 C 37.972405,19.735692 52.191454,9.1011364 56.691454,5.9011364 C 52.091454,9.2011364 37.4,19.623604 35.3,19.423604 L 35.5,19.523604 z "
+       id="path35" /></g><path
+     style="fill:#848484;fill-rule:nonzero;stroke:none;stroke-miterlimit:4"
+     d="M -35.776129,77.59328 C -36.499042,78.195706 -36.980982,78.316192 -38.547292,78.075219 C -37.462925,77.713767 -37.101469,76.99085 -37.101469,76.99085 C -37.101469,76.99085 -36.860498,77.59328 -35.896616,77.59328 L -35.776129,77.59328 z "
+     id="path39" /></g><path
+   style="fill:url(#linearGradient2688);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+   d="M 41.453387,12.863907 L 45.070016,12.604651 C 45.104038,13.331561 45.334255,19.640239 45.378767,20.328146 C 45.478519,21.869741 45.621275,22.839406 45.257238,23.12743 L 39.958311,26.839458 L 35.428276,19.680594 L 41.249254,21.206254 L 41.453387,12.863907 z "
+   id="path2680"
+   sodipodi:nodetypes="ccsccccc" /></svg>
\ No newline at end of file
Index: lib/rb-stock-icons.c
===================================================================
RCS file: /cvs/gnome/rhythmbox/lib/rb-stock-icons.c,v
retrieving revision 1.28
diff -p -u -r1.28 rb-stock-icons.c
--- lib/rb-stock-icons.c	31 May 2006 00:13:37 -0000	1.28
+++ lib/rb-stock-icons.c	31 May 2006 12:24:20 -0000
@@ -32,7 +32,7 @@
 static GtkIconFactory *factory = NULL;
 
 const char RB_APP_ICON[] = "rhythmbox";
-const char RB_STOCK_TRAY_ICON[] = "rhythmbox-tray-icon";
+const char RB_STOCK_TRAY_ICON[] = "rhythmbox";
 const char RB_STOCK_SET_STAR[] = "rhythmbox-set-star";
 const char RB_STOCK_UNSET_STAR[] = "rhythmbox-unset-star";
 const char RB_STOCK_NO_STAR[] = "rhythmbox-no-star";
@@ -90,7 +90,7 @@ rb_stock_icons_init (void)
 			char *fn;
 			const char *path;
 
-			fn = g_strconcat (items[i], ".png", NULL);
+			fn = g_strconcat (items[i], ".svg", NULL);
 			path = rb_file (fn);
 			if (path != NULL) {
 				pixbuf = gdk_pixbuf_new_from_file (path, NULL);
Index: shell/rb-shell.c
===================================================================
RCS file: /cvs/gnome/rhythmbox/shell/rb-shell.c,v
retrieving revision 1.454
diff -p -u -r1.454 rb-shell.c
--- shell/rb-shell.c	29 May 2006 01:16:07 -0000	1.454
+++ shell/rb-shell.c	31 May 2006 12:24:23 -0000
@@ -2126,7 +2126,6 @@ rb_shell_cmd_about (GtkAction *action,
 {
 	const char **tem;
 	GString *comment;
-	GdkPixbuf *pixbuf = NULL;
 
 	const char *authors[] = {
 		"",
@@ -2163,8 +2162,6 @@ rb_shell_cmd_about (GtkAction *action,
 
 	char *license_trans;
 
-	pixbuf = gdk_pixbuf_new_from_file (rb_file ("about-logo.png"), NULL);
-
 	authors[0] = _("Maintainers:");
 	for (tem = authors; *tem != NULL; tem++)
 		;
@@ -2181,17 +2178,16 @@ rb_shell_cmd_about (GtkAction *action,
 	gtk_show_about_dialog (GTK_WINDOW (shell->priv->window),
 			       "name", "Rhythmbox",
 			       "version", VERSION,
-			       "copyright", "Copyright \xc2\xa9 2005 The Rhythmbox authors\nCopyright \xc2\xa9 2003 - 2005 Colin Walters\nCopyright \xc2\xa9 2002, 2003 Jorn Baayen",
+			       "copyright", "Copyright \xc2\xa9 2005-2006 The Rhythmbox authors\nCopyright \xc2\xa9 2003 - 2005 Colin Walters\nCopyright \xc2\xa9 2002, 2003 Jorn Baayen",
 			       "license", license_trans,
 			       "website", "http://www.gnome.org/projects/rhythmbox";,
 			       "comments", comment->str,
 			       "authors", (const char **) authors,
 			       "documenters", (const char **) documenters,
 			       "translator-credits", strcmp (translator_credits, "translator-credits") != 0 ? translator_credits : NULL,
-			       "logo", pixbuf,
+			       "logo-icon-name", "rhythmbox",
 			       NULL);
-	if (pixbuf)
-		g_object_unref (pixbuf);
+
 	g_string_free (comment, TRUE);
 	g_free (license_trans);
 }


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