[banshee] [Dap.MassStorage] Add Google Nexus One image (lp#532182)



commit 9f7a6872ea044f4e7c51ace4e1dd3032f1e50a46
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Fri Mar 5 16:08:48 2010 +1100

    [Dap.MassStorage] Add Google Nexus One image (lp#532182)
    
    The source image is from Wikipedia [1] and is in public domain.
    I scaled it myself to different sizes, 16x16 and 24x24 are not
    perfect but I'm not sure if they are used anywhere.
    
    [1] http://en.wikipedia.org/wiki/File:Nexus_One.jpg

 .../Banshee.Dap.MassStorage/AndroidDevice.cs       |   21 ++++++++++++-------
 .../128x128/devices/phone-google-nexus-one.png     |  Bin 0 -> 15611 bytes
 .../16x16/devices/phone-google-nexus-one.png       |  Bin 0 -> 3260 bytes
 .../22x22/devices/phone-google-nexus-one.png       |  Bin 0 -> 3625 bytes
 .../256x256/devices/phone-google-nexus-one.png     |  Bin 0 -> 47522 bytes
 .../32x32/devices/phone-google-nexus-one.png       |  Bin 0 -> 4142 bytes
 .../48x48/devices/phone-google-nexus-one.png       |  Bin 0 -> 5463 bytes
 7 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/AndroidDevice.cs b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/AndroidDevice.cs
index 3d92eb9..2e3d6be 100644
--- a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/AndroidDevice.cs
+++ b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/AndroidDevice.cs
@@ -69,10 +69,6 @@ namespace Banshee.Dap.MassStorage
 
         private static string playlists_path = "Playlists/";
 
-        private static string [] icon_names = new string [] {
-            "phone-htc-g1-white", DapSource.FallbackIcon
-        };
-
         private AmazonMp3GroupSource amazon_source;
         private string amazon_base_dir;
 
@@ -89,10 +85,6 @@ namespace Banshee.Dap.MassStorage
             return true;
         }
 
-        public override string Name {
-            get { return VendorProductInfo.ProductName; }
-        }
-
         public override string [] AudioFolders {
             get { return audio_folders; }
         }
@@ -135,6 +127,19 @@ namespace Banshee.Dap.MassStorage
 
         public override string [] GetIconNames ()
         {
+            string [] icon_names = new string [] {
+                null, DapSource.FallbackIcon
+            };
+
+            switch (Name) {
+                case "Google Nexus One":
+                    icon_names[0] = "phone-google-nexus-one";
+                    break;
+                default:
+                    icon_names[0] = "phone-htc-g1-white";
+                    break;
+            }
+
             return icon_names;
         }
 
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/128x128/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/128x128/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..bcd4c73
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/128x128/devices/phone-google-nexus-one.png differ
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/16x16/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/16x16/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..0405145
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/16x16/devices/phone-google-nexus-one.png differ
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/22x22/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/22x22/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..5dbf7aa
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/22x22/devices/phone-google-nexus-one.png differ
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/256x256/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/256x256/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..50dbe2c
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/256x256/devices/phone-google-nexus-one.png differ
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/32x32/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/32x32/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..d125b30
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/32x32/devices/phone-google-nexus-one.png differ
diff --git a/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/48x48/devices/phone-google-nexus-one.png b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/48x48/devices/phone-google-nexus-one.png
new file mode 100644
index 0000000..98d0c9f
Binary files /dev/null and b/src/Dap/Banshee.Dap.MassStorage/ThemeIcons/48x48/devices/phone-google-nexus-one.png differ



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