diff --git a/SparkleShare/Common/Pixmaps/Sources/sparkleshare-windows.svg b/SparkleShare/Common/Pixmaps/Sources/sparkleshare-windows.svg
index 43368801..d0c3b224 100644
--- a/SparkleShare/Common/Pixmaps/Sources/sparkleshare-windows.svg
+++ b/SparkleShare/Common/Pixmaps/Sources/sparkleshare-windows.svg
@@ -10,116 +10,253 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="16"
- height="16"
+ width="256"
+ height="256"
id="svg2"
version="1.1"
inkscape:version="0.48.2 r9819"
- sodipodi:docname="sparkleshare-windows.svg"
- inkscape:export-filename="C:\Users\Hylke\Code\SparkleShare\data\icons\folder-sparkleshare-windows-16.png"
- inkscape:export-xdpi="90"
- inkscape:export-ydpi="90">
+ sodipodi:docname="sparkleshare-folder.svg">
+
+
+
+
+ id="linearGradient16589">
+ id="stop16591" />
+ id="stop16593" />
+ inkscape:collect="always"
+ id="linearGradient16186">
+ id="stop16188" />
+ id="stop16190" />
+ id="linearGradient15420">
+ id="stop15422" />
-
-
-
-
-
+ id="stop15424" />
+ inkscape:collect="always"
+ id="linearGradient15406">
+ id="stop15408" />
+ id="stop15410" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ color-interpolation-filters="sRGB"
+ height="1.2122222"
+ y="-0.10611111"
+ width="1.2028052"
+ x="-0.10140261"
+ id="filter15758-4"
+ inkscape:collect="always">
+
+ id="linearGradient15762-5"
+ inkscape:collect="always">
+ style="stop-color: rgb(255, 255, 255); stop-opacity: 1;" />
-
+ style="stop-color: rgb(255, 255, 255); stop-opacity: 0;" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -250,45 +375,6 @@
offset="1"
style="stop-color:#ce5c00;stop-opacity:1" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ x1="322.3212"
+ y1="88.129036"
+ x2="322.3212"
+ y2="58.425179"
+ gradientTransform="matrix(0.9558116,0,0,0.96875,207.97955,52.8195)" />
-
-
-
-
-
-
-
-
-
-
-
-
+ x1="318"
+ y1="69.892479"
+ x2="318"
+ y2="52.626183"
+ gradientTransform="translate(193.83958,49.9445)" />
+
+
+
+ x1="318.99954"
+ y1="154.29935"
+ x2="318.99954"
+ y2="135.5"
+ gradientTransform="translate(193.83958,49.9445)" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ inkscape:showpageshadow="false"
+ showborder="false">
-
@@ -660,7 +1024,7 @@
image/svg+xml
-
+
@@ -668,13 +1032,65 @@
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
- transform="translate(-217,-709.36218)">
+ transform="translate(-48,-43.362183)">
+
+
+
+
+
+
+
+
+ x="919.8396"
+ y="429.94449" />
+ x="926.8396"
+ y="505.94449" />
+ x="926.8396"
+ y="556.94452" />
+ x="926.8396"
+ y="598.94452" />
+ x="925.8396"
+ y="555.94452" />
+ x="643.8396"
+ y="407.94449" />
places
+ x="644.8103"
+ y="401.4581">places
sparkleshare
+ x="765.8103"
+ y="401.4581">sparkleshare
-
-
-
-
+
+
+
+
+
+ transform="matrix(0,1,-0.2426915,-0.2156822,225.89646,-486.60672)"
+ id="g15277">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+ style="opacity:0;fill:#ef2929;fill-opacity:1;stroke:none"
+ id="rect4473"
+ width="32"
+ height="32"
+ x="353"
+ y="161.36218" />
+ y="218.36218"
+ x="353"
+ height="16"
+ width="16"
+ id="rect4475"
+ style="opacity:0;fill:#ef2929;fill-opacity:1;stroke:none" />
+
+
+ id="path16996"
+ d="m 74.34375,48.4375 0,194.25 35.15625,7.78125 -0.21875,13.59375 c 0,0 -5.78125,41.21875 10.21875,35.21875 l 75.03125,-33.84375 -6.34375,-1.53125 0,-162.22546 z"
+ style="opacity:0.74137932;fill:url(#linearGradient17050);fill-opacity:1;stroke:none;filter:url(#filter16202)"
+ transform="matrix(0.18117476,0,0,0.1809007,343.90947,75.672464)"
+ sodipodi:nodetypes="ccccccccc" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ inkscape:connector-curvature="0"
+ id="path4591"
+ d="m 354.52231,218.89111 c 0,0 2.00778,1.96751 6.05772,1.96751 l -0.0224,12.96469 c -4.06587,0 -6.05572,-0.86938 -6.05572,-0.86938 z"
+ style="fill:url(#linearGradient4609);fill-opacity:1;stroke:#e37809;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
+
+
+
diff --git a/SparkleShare/Windows/Pixmaps/sparkleshare-folder.ico b/SparkleShare/Windows/Pixmaps/sparkleshare-folder.ico
new file mode 100644
index 00000000..e00ebf46
Binary files /dev/null and b/SparkleShare/Windows/Pixmaps/sparkleshare-folder.ico differ
diff --git a/SparkleShare/Windows/SparkleController.cs b/SparkleShare/Windows/SparkleController.cs
index 8f5ea56a..9c9f6eb0 100644
--- a/SparkleShare/Windows/SparkleController.cs
+++ b/SparkleShare/Windows/SparkleController.cs
@@ -130,16 +130,29 @@ namespace SparkleShare {
{
if (!Directory.Exists (FoldersPath)) {
Directory.CreateDirectory (FoldersPath);
-
- SparkleHelpers.DebugInfo ("Config", "Created '" + FoldersPath + "'");
-
- // TODO: Set a custom SparkleShare folder icon
+ File.SetAttributes (FoldersPath, File.GetAttributes (FoldersPath) | FileAttributes.System);
return true;
- } else {
- return false;
+ } else if (!File.Exists (icon_file_path)) {
+ string ini_file_path = Path.Combine (FoldersPath, "desktop.ini");
+ string app_path = Path.GetDirectoryName (Application.ExecutablePath);
+ string icon_file_path = Path.Combine (app_path, "Pixmaps", "sparkleshare-folder.ico");
+
+ string ini_file "[.ShellClassInfo]" +
+ "IconFile=" + icon_file_path +
+ "IconIndex=0" +
+ "InfoTip=SparkleShare";
+
+ File.WriteAllText (ini_file_path, ini_file);
+
+ File.SetAttributes (ini_file_path,
+ File.GetAttributes (ini_file_path) | FileAttributes.Hidden | FileAttributes.System);
+
+ SparkleHelpers.DebugInfo ("Config", "Created '" + FoldersPath + "'");
}
+
+ return false;
}
diff --git a/SparkleShare/Windows/SparkleShare.csproj b/SparkleShare/Windows/SparkleShare.csproj
index f4dccb92..80d966e3 100644
--- a/SparkleShare/Windows/SparkleShare.csproj
+++ b/SparkleShare/Windows/SparkleShare.csproj
@@ -290,4 +290,7 @@
SparkleLib
+
+
+