/// <param name="returnPinnedAppsInfo">A App Shortcut list contains the additional Shortcuts.</param>
private void AddAllAppsAndMediaHubShortcut(ref List<ShortcutInfo> 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);
}
/// <param name="returnPinnedAppsInfo">A App Shortcut list contains the additional Shortcuts.</param>
private void AppendAddPinShortcut(ref List<ShortcutInfo> 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<string>((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<string>((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<string>((key) =>
+ {
+ AppControlUtils.SendAddAppRequestToApps();
+ }),
+ CommandParameter = "",
+ }
+ }
+ },
}
};
- var addPinShortcutInfo = new AppShortcutInfo();
-
- addPinShortcutInfo.StateDescriptions.Add("default", addPinStateDescription);
- addPinShortcutInfo.CurrentStateDescription = addPinStateDescription;
-
+ addPinShortcutInfo.UpdateState();
returnPinnedAppsInfo.Add(addPinShortcutInfo);
}
<Content Include="res\ic_black.png" />
<Content Include="res\ic_blue.png" />
<Content Include="res\ic_green.png" />
+ <Content Include="res\ic_home_menu_addpin_138.png" />
+ <Content Include="res\ic_home_menu_addpin_182.png" />
+ <Content Include="res\ic_home_menu_apps_138.png" />
+ <Content Include="res\ic_home_menu_apps_182.png" />
+ <Content Include="res\ic_launcher_mediahub_138.png" />
+ <Content Include="res\ic_launcher_mediahub_182.png" />
<Content Include="res\ic_red.png" />
<Content Include="res\ic_tizen_apps_additional_back.png" />
<Content Include="res\ic_tizen_apps_launcher_pinmark.png" />
<Content Include="res\ic_tizen_option_menu_list_box_check_normal.png" />
<Content Include="res\ic_tizen_option_menu_list_box_check_selected.png" />
<Content Include="res\ic_yellow.png" />
+ <Content Include="res\img_home_list_dimmed_apps_60.png" />
<Content Include="res\img_tizen_apps_list_dimmed.png" />
<Content Include="res\img_tizen_apps_list_dimmed_check.png" />
<Content Include="res\img_tizen_home_list_bg_focused.png" />
x:Class="TVHome.Controls.SubPanelAllAppsButton">
<RelativeLayout x:Name="ButtonBox"
HorizontalOptions="Center">
- <Image x:Name="ButtonBgImage"
+ <Image x:Name="ButtonImage"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.095652}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.6}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.75824}"
- Source="img_tizen_home_list_bg_normal.png" />
- <Image x:Name="ButtonImage"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.3571428}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.2826}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.226087}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.2857}"
Source="{Binding CurrentStateDescription.IconPath}" />
<Image x:Name="ButtonDimmedImage"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.095652}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.6}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.75824}"
- Source="img_tizen_home_list_dim_apps.png" />
+ Source="img_home_list_dimmed_apps_60.png" />
<Label x:Name="ButtonTitle"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.77391}"
#pragma warning disable CS4014
ButtonTitle.FadeTo(0.99, 300);
ButtonTitle.TranslateTo(0, selectTransitionHeight, 300);
- ButtonImage.ScaleTo(1.3, 300);
#pragma warning restore CS4014
- await ButtonBgImage.ScaleTo(1.3, 300);
+ await ButtonImage.ScaleTo(1.3, 300);
}
/// <summary>
#pragma warning disable CS4014
ButtonTitle.FadeTo(0.5, 300);
ButtonTitle.TranslateTo(0, 0, 300);
- ButtonImage.ScaleTo(1.0, 300);
#pragma warning restore CS4014
- await ButtonBgImage.ScaleTo(1, 300);
+ await ButtonImage.ScaleTo(1.0, 300);
}
/// <summary>
x:Class="TVHome.Controls.SubPanelReservedButton">
<RelativeLayout x:Name = "ButtonBox"
HorizontalOptions="Center">
- <Image x:Name="ButtonBgImage"
+ <Image x:Name="ButtonImage"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.095652}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.6}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.75824}"
- Source="img_tizen_home_list_bg_white_normal.png" />
- <Image x:Name="ButtonImage"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.3571428}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.2826}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.226087}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.2857}"
Source="{Binding CurrentStateDescription.IconPath}" />
<Image x:Name="ButtonDimmedImage"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.095652}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.6}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.75824}"
- Source="img_tizen_home_list_dim_apps.png" />
+ Source="img_home_list_dimmed_apps_60.png" />
<Label x:Name="ButtonTitle"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.77391}"
#pragma warning disable CS4014
ButtonTitle.FadeTo(0.99, 300);
ButtonTitle.TranslateTo(0, selectTransitionHeight, 300);
- ButtonImage.ScaleTo(1.3, 300);
#pragma warning restore CS4014
- await ButtonBgImage.ScaleTo(1.3, 300);
+ await ButtonImage.ScaleTo(1.3, 300);
}
/// <summary>
#pragma warning disable CS4014
ButtonTitle.FadeTo(0.5, 300);
ButtonTitle.TranslateTo(0, 0, 300);
- ButtonImage.ScaleTo(1, 300);
#pragma warning restore CS4014
- await ButtonBgImage.ScaleTo(1, 300);
+ await ButtonImage.ScaleTo(1, 300);
}
/// <summary>
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.095652}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.6}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.75824}"
- Source="img_tizen_home_list_dim_apps.png" />
+ Source="img_home_list_dimmed_apps_60.png" />
<Label x:Name="ButtonTitle"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.120879}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.77391}"