Permalink
Browse files

scide: import radial scide icon

designed by Batuhan Bozkurt

Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information...
1 parent ff7a6a2 commit c238dbea673787c37dc673cccc5332c3eb45d3af @timblechmann timblechmann committed Sep 26, 2012
@@ -2,7 +2,7 @@
Name=SuperCollider IDE
GenericName=SuperCollider IDE
Exec=scide %f
-Icon=supercollider
+Icon=sc_ide
Type=Application
Terminal=false
Patterns=*.scd;*.sc;*.schelp
@@ -4,7 +4,15 @@
<file alias="icons/sc-cube-32">../../icons/sc_cube_32x32.png</file>
<file alias="icons/sc-cube-48">../../icons/sc_cube_48x48.png</file>
<file alias="icons/sc-cube-128">../../icons/sc_cube_128x128.png</file>
- <file alias="icons/sc-ide-128">../../icons/sc_ide_128x128.png</file>
+ <file alias="icons/sc-ide-svg">../../icons/sc_ide.svg</file>
+ <file alias="icons/sc-ide-16">../../icons/sc_ide_16.png</file>
+ <file alias="icons/sc-ide-24">../../icons/sc_ide_24.png</file>
+ <file alias="icons/sc-ide-32">../../icons/sc_ide_32.png</file>
+ <file alias="icons/sc-ide-48">../../icons/sc_ide_48.png</file>
+ <file alias="icons/sc-ide-64">../../icons/sc_ide_64.png</file>
+ <file alias="icons/sc-ide-128">../../icons/sc_ide_128.png</file>
+ <file alias="icons/sc-ide-256">../../icons/sc_ide_256.png</file>
+ <file alias="icons/sc-ide-512">../../icons/sc_ide_512.png</file>
+ <file alias="icons/sc-ide-1024">../../icons/sc_ide_1024.png</file>
</qresource>
</RCC>
-
@@ -193,7 +193,16 @@ MainWindow::MainWindow(Main * main) :
updateRecentDocsMenu();
QIcon icon;
+ icon.addFile(":/icons/sc-ide-svg");
+ icon.addFile(":/icons/sc-ide-16");
+ icon.addFile(":/icons/sc-ide-24");
+ icon.addFile(":/icons/sc-ide-32");
+ icon.addFile(":/icons/sc-ide-48");
+ icon.addFile(":/icons/sc-ide-64");
icon.addFile(":/icons/sc-ide-128");
+ icon.addFile(":/icons/sc-ide-256");
+ icon.addFile(":/icons/sc-ide-512");
+ icon.addFile(":/icons/sc-ide-1024");
QApplication::setWindowIcon(icon);
updateWindowTitle();
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,49 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="1024" viewBox="0 0 1024 1024" version="1.1">
+ <desc>SuperCollider Icon SVG - Batuhan Bozkurt 2012</desc>
+ <defs>
+ <circle id="circ0" cx="50%" cy="50%" r="45%" transform="rotate(0 512 512)"/>
+ <circle id="circ1" cx="50%" cy="50%" r="38.25%" transform="rotate(54 512 512)"/>
+ <circle id="circ2" cx="50%" cy="50%" r="31.5%" transform="rotate(108 512 512)"/>
+ <circle id="circ3" cx="50%" cy="50%" r="24.75%" transform="rotate(162 512 512)"/>
+ <circle id="circ4" cx="50%" cy="50%" r="18%" transform="rotate(216 512 512)"/>
+ <circle id="circ5" cx="50%" cy="50%" r="11.25%" transform="rotate(270 512 512)"/>
+ <circle id="circ6" cx="50%" cy="50%" r="4.5%" transform="rotate(324 512 512)"/>
+ <linearGradient id="fcirc0" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(0,0,0)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc1" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(13,13,13)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc2" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(25,25,25)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc3" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(38,38,38)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc4" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(51,51,51)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc5" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(64,64,64)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ <linearGradient id="fcirc6" x1="50%" y1="0%" x2="50%" y2="100%">
+ <stop stop-color="rgb(77,77,77)" offset="0%"/>
+ <stop stop-color="rgb(255,255,255)" offset="100%"/>
+ </linearGradient>
+ </defs>
+ <use xlink:href="#circ0" fill="url(#fcirc0)"/>
+ <use xlink:href="#circ1" fill="url(#fcirc1)"/>
+ <use xlink:href="#circ2" fill="url(#fcirc2)"/>
+ <use xlink:href="#circ3" fill="url(#fcirc3)"/>
+ <use xlink:href="#circ4" fill="url(#fcirc4)"/>
+ <use xlink:href="#circ5" fill="url(#fcirc5)"/>
+ <use xlink:href="#circ6" fill="url(#fcirc6)"/>
+</svg>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Deleted file not rendered
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,34 @@
+//SC radial icon XML(SVG) generator
+//Batuhan Bozkurt 2012
+
+(
+var cids, fids;
+var circDefs, fillDefs, uses, wrapped;
+var incre, incre2, decre, phase;
+var radFor;
+var w;
+
+~circle = {|id, cx, cy, r, rotate| "<circle id=\"%\" cx=\"%\\%\" cy =\"%\\%\" r=\"%\\%\" transform=\"rotate(% 512 512)\"/>".format(id, cx, cy, r, rotate) };
+~color = {|shade| "rgb(%,%,%)".format(*((shade * 255).round ! 3)); };
+~linGrad = {|id, xy1, xy2, c1, c2| "<linearGradient id=\"%\" x1=\"%\\%\" y1=\"%\\%\" x2=\"%\\%\" y2=\"%\\%\"><stop stop-color=\"%\" offset=\"0\\%\"/><stop stop-color=\"%\" offset=\"100\\%\"/></linearGradient>".format(id, xy1.x, xy1.y, xy2.x, xy2.y, ~color.(c1), ~color.(c2)); };
+~use = {|shape, fill| "<use xlink:href=\"#%\" fill=\"url(#%)\"/>".format(shape, fill); };
+~wrapAll = {|w, h, defs, draws| "<?xml version=\"1.0\" standalone=\"no\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg width=\"%\" height=\"%\" viewBox=\"0 0 % %\" version = \"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><desc>SuperCollider Icon SVG - Batuhan Bozkurt 2012</desc><defs>%</defs>%</svg>".format(w, h, w, h, defs, draws); };
+
+
+radFor = {|cnt| (90 - (13.5 * cnt)); };
+w = 100;
+phase = -pi;
+
+incre = -0.95;
+incre2 = 4.02;
+decre = 59;
+
+cids = 7.collect({|cnt| "circ" ++ cnt; });
+fids = 7.collect({|cnt| "fcirc" ++ cnt; });
+
+circDefs = 7.collect({|cnt| ~circle.(cids[cnt], 50, 50, radFor.(cnt) / 2, (54 * cnt) % 360); });
+fillDefs = 7.collect({|cnt| ~linGrad.(fids[cnt], 50@0, 50@100, cnt.linlin(0, 6, 0, 0.3), 1); });
+uses = 7.collect({|cnt| ~use.(cids[cnt], fids[cnt]); });
+wrapped = ~wrapAll.(1024, 1024, circDefs.join ++ fillDefs.join, uses.join);
+wrapped.postln;
+)
@@ -4,5 +4,8 @@ install(DIRECTORY examples
install(FILES icons/supercollider.png icons/supercollider.xpm
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps )
+install(FILES ../../icons/sc_ide.svg
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps )
+
install(FILES supercollider.xml
DESTINATION share/mime/packages )

0 comments on commit c238dbe

Please sign in to comment.