From: Hyerim Kim Date: Tue, 18 Apr 2017 13:34:30 +0000 (+0900) Subject: Changes Home Subpanel resources according to GUI guideline. X-Git-Tag: submit/tizen/20170808.015446~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ba29a37dfbd359d94fad5c7ade1750e2b361127;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Changes Home Subpanel resources according to GUI guideline. Change-Id: I92c4be7909aae2db6ae00a4c605e83611137790b Signed-off-by: Hyerim Kim --- diff --git a/LibTVRefCommonPortable/Models/AppShortcutController.cs b/LibTVRefCommonPortable/Models/AppShortcutController.cs index 24f88c2..331c975 100755 --- a/LibTVRefCommonPortable/Models/AppShortcutController.cs +++ b/LibTVRefCommonPortable/Models/AppShortcutController.cs @@ -92,37 +92,72 @@ namespace LibTVRefCommonPortable.Models /// A App Shortcut list contains the additional Shortcuts. private void AddAllAppsAndMediaHubShortcut(ref List returnPinnedAppsInfo) { - var allAppsStateDescription = new StateDescription() + var allAppsShortcutInfo = new AppShortcutInfo() { - Label = "All apps", - IconPath = "ic_tizen_home_list_allapps_normal.png", - Action = new AppControlAction + StateDescriptions = { - AppID = ManagedApps.TVAppsAppID, + { + "default", + new StateDescription + { + Label = "All apps", + IconPath = "ic_home_menu_apps_138.png", + Action = new AppControlAction + { + AppID = ManagedApps.TVAppsAppID, + } + } + }, + { + "focused", + new StateDescription + { + Label = "All apps", + IconPath = "ic_home_menu_apps_182.png", + Action = new AppControlAction + { + AppID = ManagedApps.TVAppsAppID, + } + } + }, } }; - var allAppsShortcutInfo = new AppShortcutInfo(); - - allAppsShortcutInfo.StateDescriptions.Add("default", allAppsStateDescription); - allAppsShortcutInfo.CurrentStateDescription = allAppsStateDescription; - + allAppsShortcutInfo.UpdateState(); returnPinnedAppsInfo.Insert(0, allAppsShortcutInfo); - var mediaHubStateDescription = new StateDescription() + var mediaHubShortcutInfo = new AppShortcutInfo() { - Label = "Media Hub", - IconPath = "ic_tizen_home_list_mediahub_normal.png", - Action = new AppControlAction + StateDescriptions = { - AppID = ManagedApps.MediaHubAppID, + { + "default", + new StateDescription + { + Label = "Media Hub", + IconPath = "ic_launcher_mediahub_138.png", + Action = new AppControlAction + { + AppID = ManagedApps.MediaHubAppID, + } + } + }, + { + "focused", + new StateDescription + { + Label = "Media Hub", + IconPath = "ic_launcher_mediahub_182.png", + Action = new AppControlAction + { + AppID = ManagedApps.MediaHubAppID, + } + } + }, } }; - var mediaHubShortcutInfo = new AppShortcutInfo(); - mediaHubShortcutInfo.StateDescriptions.Add("default", mediaHubStateDescription); - mediaHubShortcutInfo.CurrentStateDescription = mediaHubStateDescription; - + mediaHubShortcutInfo.UpdateState(); returnPinnedAppsInfo.Insert(1, mediaHubShortcutInfo); } @@ -134,26 +169,48 @@ namespace LibTVRefCommonPortable.Models /// A App Shortcut list contains the additional Shortcuts. private void AppendAddPinShortcut(ref List returnPinnedAppsInfo) { - var addPinStateDescription = new StateDescription() + var addPinShortcutInfo = new AppShortcutInfo() { - Label = "Add pin", - IconPath = "ic_tizen_home_list_addpin_normal.png", - Action = new CommandAction() + StateDescriptions = { - NextStateDescription = "default", - Command = new Command((key) => { - AppControlUtils.SendAddAppRequestToApps(); - }), - CommandParameter = "", + "default", + new StateDescription + { + Label = "Add pin", + IconPath = "ic_home_menu_addpin_138.png", + Action = new CommandAction() + { + NextStateDescription = "default", + Command = new Command((key) => + { + AppControlUtils.SendAddAppRequestToApps(); + }), + CommandParameter = "", + } + } + }, + { + "focused", + new StateDescription + { + Label = "Add pin", + IconPath = "ic_home_menu_addpin_182.png", + Action = new CommandAction() + { + NextStateDescription = "default", + Command = new Command((key) => + { + AppControlUtils.SendAddAppRequestToApps(); + }), + CommandParameter = "", + } + } + }, } }; - var addPinShortcutInfo = new AppShortcutInfo(); - - addPinShortcutInfo.StateDescriptions.Add("default", addPinStateDescription); - addPinShortcutInfo.CurrentStateDescription = addPinStateDescription; - + addPinShortcutInfo.UpdateState(); returnPinnedAppsInfo.Add(addPinShortcutInfo); } diff --git a/TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj b/TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj index 337e889..d8ad71b 100755 --- a/TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj +++ b/TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj @@ -102,6 +102,12 @@ + + + + + + @@ -134,6 +140,7 @@ + diff --git a/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_138.png b/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_138.png new file mode 100755 index 0000000..9eeba3e Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_138.png differ diff --git a/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_182.png b/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_182.png new file mode 100755 index 0000000..1ffd4b6 Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_home_menu_addpin_182.png differ diff --git a/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_138.png b/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_138.png new file mode 100755 index 0000000..a280cf3 Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_138.png differ diff --git a/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_182.png b/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_182.png new file mode 100755 index 0000000..66c0cba Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_home_menu_apps_182.png differ diff --git a/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_138.png b/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_138.png new file mode 100755 index 0000000..bdfacb1 Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_138.png differ diff --git a/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_182.png b/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_182.png new file mode 100755 index 0000000..dc9203e Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_launcher_mediahub_182.png differ diff --git a/TVHome/TVHome.TizenTV/res/img_home_list_dimmed_apps_60.png b/TVHome/TVHome.TizenTV/res/img_home_list_dimmed_apps_60.png new file mode 100755 index 0000000..4f5ac7c Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/img_home_list_dimmed_apps_60.png differ diff --git a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml index be9d49c..3ecf50d 100755 --- a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml +++ b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml @@ -5,24 +5,18 @@ x:Class="TVHome.Controls.SubPanelAllAppsButton"> - - + Source="img_home_list_dimmed_apps_60.png" />