Change ListMenu Icons
authorgs86.lee <gs86.lee@DO-GS86-LEE04>
Tue, 28 Feb 2017 09:59:23 +0000 (18:59 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:44 +0000 (18:34 +0900)
Change-Id: Ia3626155593010a6c9ea8018fc0083119dc4fa06

TVHome/TVHome.TizenTV/Ports/ApplicationManagerPort.cs
TVHome/TVHome.TizenTV/res/ic_black.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/ic_blue.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/ic_green.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/ic_red.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/ic_yellow.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/screenshot.png
TVHome/TVHome/Utils/AppShortcutStorage.cs

index 600f43e852ce8fadc9578ed96d2eb7c56e79de66..e2fb26434e7e746e2cdb9c66455b55ee54e656b7 100644 (file)
@@ -52,7 +52,7 @@ namespace TVHome.TizenTV.Ports
 \r
                 result[0] = appInfo.Label != null ? appInfo.Label : null;\r
                 result[1] = appInfo.ApplicationId != null ? appInfo.ApplicationId : null;\r
-                result[2] = appInfo.IconPath != null ? appInfo.IconPath : null;\r
+                result[2] = appInfo.IconPath != null ? appInfo.IconPath : "AppIcon.png";\r
 \r
                 resultList.Add(appInfo.ApplicationId, result);\r
             }\r
diff --git a/TVHome/TVHome.TizenTV/res/ic_black.png b/TVHome/TVHome.TizenTV/res/ic_black.png
new file mode 100644 (file)
index 0000000..77efe14
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_black.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_blue.png b/TVHome/TVHome.TizenTV/res/ic_blue.png
new file mode 100644 (file)
index 0000000..56c8cab
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_blue.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_green.png b/TVHome/TVHome.TizenTV/res/ic_green.png
new file mode 100644 (file)
index 0000000..40bb6c8
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_green.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_red.png b/TVHome/TVHome.TizenTV/res/ic_red.png
new file mode 100644 (file)
index 0000000..bd5ae42
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_red.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_yellow.png b/TVHome/TVHome.TizenTV/res/ic_yellow.png
new file mode 100644 (file)
index 0000000..8d35825
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_yellow.png differ
index 9aa8939d0cf5f1cbc7e6e9376e34d53bdf70822b..68d91ae320c7004d2df9653f3cb37995bf662f4b 100644 (file)
Binary files a/TVHome/TVHome.TizenTV/res/screenshot.png and b/TVHome/TVHome.TizenTV/res/screenshot.png differ
index bff1eebf79938e20d54a81bb832d573c7e27dd02..6c349fb30a296a8e2ad6fdd62fa0a1ffeb16959e 100644 (file)
@@ -123,6 +123,8 @@ namespace TVHome.Utils
             // Actual Test code\r
             List<AppShortcutInfo> list = new List<AppShortcutInfo>();\r
             Dictionary<string, string[]> pkgList = PackageManagerUtils.Instance.GetPackageList();\r
+            string[] icons = { "ic_black.png", "ic_blue.png", "ic_green.png", "ic_red.png", "ic_yellow.png", "AppIcon.png" };\r
+            Random random = new Random();\r
 \r
             string[] result;\r
             AppShortcutInfo shortcutInfo;\r
@@ -139,7 +141,7 @@ namespace TVHome.Utils
                             new StateDescription\r
                             {\r
                                 Label = result[0],\r
-                                IconPath = "user_1.png",    // result[2]\r
+                                IconPath = icons[random.Next(0, 6)],//IconPath = (resul5t[2] == null) ? "AppIcon.png" : result[2],\r
                                 Action = new AppControlAction()\r
                                 {\r
                                     PkgID = "org.tizen.settings"    // result[1]\r