diff --git a/Makefile b/Makefile index 853ef038..b4833df1 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,14 @@ install: cp data/icons /usr/share/ -R mkdir -p ~/.config/autostart cp sparklepony.desktop.in ~/.config/autostart/sparklepony.desktop + gtk-update-icon-cache /usr/share/icons/hicolor -f + uninstall: rm /usr/local/bin/sparklepony rm /usr/local/share/sparklepony/SparklePony.exe rmdir /usr/local/share/sparklepony - rm /usr/share/icons/hicolor/*x*/places/folder-publicshare.png + rm /usr/share/icons/hicolor/*x*/places/folder-sparklepony.png rm /usr/share/icons/hicolor/*x*/status/document-*ed.png rm /usr/share/icons/hicolor/*x*/status/avatar-default.png rm ~/.config/autostart/sparklepony.desktop diff --git a/data/icons/hicolor/16x16/places/folder-publicshare.png b/data/icons/hicolor/16x16/places/folder-publicshare.png deleted file mode 100644 index ec131e29..00000000 Binary files a/data/icons/hicolor/16x16/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/16x16/places/folder-sparklepony.png b/data/icons/hicolor/16x16/places/folder-sparklepony.png new file mode 100644 index 00000000..0d4905cd Binary files /dev/null and b/data/icons/hicolor/16x16/places/folder-sparklepony.png differ diff --git a/data/icons/hicolor/22x22/places/folder-publicshare.png b/data/icons/hicolor/22x22/places/folder-publicshare.png deleted file mode 100644 index 52b7b136..00000000 Binary files a/data/icons/hicolor/22x22/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/22x22/places/folder-sparklepony.png b/data/icons/hicolor/22x22/places/folder-sparklepony.png new file mode 100644 index 00000000..89f6ad27 Binary files /dev/null and b/data/icons/hicolor/22x22/places/folder-sparklepony.png differ diff --git a/data/icons/hicolor/24x24/places/folder-publicshare.png b/data/icons/hicolor/24x24/places/folder-publicshare.png deleted file mode 100644 index 15edfa57..00000000 Binary files a/data/icons/hicolor/24x24/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/24x24/places/folder-sparklepony.png b/data/icons/hicolor/24x24/places/folder-sparklepony.png new file mode 100644 index 00000000..2136b5db Binary files /dev/null and b/data/icons/hicolor/24x24/places/folder-sparklepony.png differ diff --git a/data/icons/hicolor/256x256/places/folder-publicshare.png b/data/icons/hicolor/256x256/places/folder-publicshare.png deleted file mode 100644 index 8f73890a..00000000 Binary files a/data/icons/hicolor/256x256/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/256x256/places/folder-sparklepony.png b/data/icons/hicolor/256x256/places/folder-sparklepony.png new file mode 100644 index 00000000..552c6f1c Binary files /dev/null and b/data/icons/hicolor/256x256/places/folder-sparklepony.png differ diff --git a/data/icons/hicolor/32x32/places/folder-publicshare.png b/data/icons/hicolor/32x32/places/folder-publicshare.png deleted file mode 100644 index c7a3cf08..00000000 Binary files a/data/icons/hicolor/32x32/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/32x32/places/folder-sparklepony.png b/data/icons/hicolor/32x32/places/folder-sparklepony.png new file mode 100644 index 00000000..8a28c731 Binary files /dev/null and b/data/icons/hicolor/32x32/places/folder-sparklepony.png differ diff --git a/data/icons/hicolor/48x48/places/folder-publicshare.png b/data/icons/hicolor/48x48/places/folder-publicshare.png deleted file mode 100644 index 173bee84..00000000 Binary files a/data/icons/hicolor/48x48/places/folder-publicshare.png and /dev/null differ diff --git a/data/icons/hicolor/48x48/places/folder-sparklepony.png b/data/icons/hicolor/48x48/places/folder-sparklepony.png new file mode 100644 index 00000000..b1976dde Binary files /dev/null and b/data/icons/hicolor/48x48/places/folder-sparklepony.png differ diff --git a/data/sparklepony.svg b/data/sparklepony.svg new file mode 100644 index 00000000..98403f0e --- /dev/null +++ b/data/sparklepony.svg @@ -0,0 +1,2478 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Lapo Calamandrei + + + SparklePony + + + folder + directory + share + dir + + + Based of Jakub Steiner's design + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sparklepony.desktop.in b/sparklepony.desktop.in index 5e8d5133..324b9941 100644 --- a/sparklepony.desktop.in +++ b/sparklepony.desktop.in @@ -1,5 +1,5 @@ [Desktop Entry] Name=SparklePony Exec=sparklepony start -Icon=folder-publicshare +Icon=folder-sparklepony Terminal=false diff --git a/src/SparklePony.cs b/src/SparklePony.cs index 8f772d5f..2ddd52bb 100644 --- a/src/SparklePony.cs +++ b/src/SparklePony.cs @@ -121,6 +121,13 @@ public class SparklePonyUI { if (!Directory.Exists (ReposPath)) { Directory.CreateDirectory (ReposPath); Console.WriteLine ("[Config] Created '" + ReposPath + "'"); + + Process.StartInfo.FileName = "gvfs-set-attribute"; + Process.StartInfo.Arguments = ReposPath + " metadata::custom-icon " + + "file:///usr/share/icons/hicolor/" + + "48x48/places/folder-sparklepony.png"; + Process.Start(); + } // Create place to store configuration user's home folder @@ -190,7 +197,7 @@ public class SparklePonyStatusIcon : StatusIcon { public SparklePonyStatusIcon () : base () { - IconName = "folder-publicshare"; + IconName = "folder-sparklepony"; string UserHome = Environment.GetEnvironmentVariable("HOME") + "/"; string FirstRunFile = UserHome + ".config/sparklepony/firstrun"; @@ -213,7 +220,7 @@ public class SparklePonyStatusIcon : StatusIcon { } public void SetIdleState () { - IconName = "folder-publicshare"; + IconName = "folder-sparklepony"; } public void SetSyncingState () { @@ -605,7 +612,7 @@ public class SparklePonyWindow : Window { SetSizeRequest (720, 540); SetPosition (WindowPosition.Center); BorderWidth = 6; - IconName = "folder-publicshare"; + IconName = "folder-sparklepony"; VBox LayoutVertical = new VBox (false, 0);