AddSelectPlaylistCancelButton();
selectPlaylistDialog = new AlertDialog()
{
- Size2D = new Size2D(1184, 660).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 660).DpToPx(),
Title = "Add to playlist",
Content = selectPlaylistContentArea,
Actions = new List<View> { selectPlaylistCancelButton },
Padding = new Extents(0, 0, 0, 0).DpToPx(),
- Margin = new Extents(0, 0, 0, 0).DpToPx(),
+ Margin = new Extents(32, 32, 0, 0).DpToPx(),
};
TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
textLabel.FontStyle = UIFontStyles.AllNormal;
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = 108.DpToPx(),
TextAlignment = HorizontalAlignment.Begin,
- Padding = new Extents(64, 64, 0, 0).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
IsEnabled = true,
IsSelectable = false,
ItemAlignment = LinearLayout.Alignment.CenterVertical,
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = 2.DpToPx(),
BackgroundColor = UIColors.ItemSeperator,
- Margin = new Extents(64, 64, 0, 0).DpToPx(),
+ Margin = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
};
selectPlaylistContentArea.Add(itemSeperator);
createNewPlaylistButton.Clicked += CreateNewPlaylistButtonClicked;
AddCreatePlaylistButtons();
createPlaylistDialog = new AlertDialog()
{
- Size2D = new Size2D(1184, 465).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 465).DpToPx(),
Title = "Create playlist",
Content = createPlaylistContentArea,
Actions = new List<View> { createPlaylistCancelButton, createPlaylistCreateButton },
Padding = new Extents(0, 0, 0, 0).DpToPx(),
- Margin = new Extents(0, 0, 0, 0).DpToPx(),
+ Margin = new Extents(32, 32, 0, 0).DpToPx(),
};
TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
textLabel.FontStyle = UIFontStyles.AllNormal;
{
ThemeChangeSensitive = true,
StyleName = "ListBackground",
- Size2D = new Size2D(1184, 108).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 108).DpToPx(),
ItemsLayouter = new LinearLayouter(),
ScrollingDirection = ScrollableBase.Direction.Vertical,
HeightSpecification = LayoutParamPolicies.WrapContent,
VerticalAlignment = VerticalAlignment.Center,
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.NormalLight,
- Padding = new Extents(64, 64, 0, 0).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
};
selectPlaylistContentArea.Add(noListText);
}
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = new Extents(64, 64, 0, 0).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
},
};
TextLabel textLabel = new TextLabel()
{
- StyleName = "ItemLabel",
+ StyleName = "TitleText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = 40.DpToPx(),
{
inputArea = new View()
{
- Size2D = new Size2D(1024, 48).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 856 : 1024), 48).DpToPx(),
Layout = new FlexLayout()
{
Direction = FlexLayout.FlexDirection.Row,
ThemeChangeSensitive = true,
StyleName = "TextField",
PixelSize = 32.DpToPx(),
- Size2D = new Size2D(928, 48).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 808 : 928), 48).DpToPx(),
Position2D = new Position2D(0, 0).DpToPx(),
- Margin = new Extents(0, 48, 0, 0).DpToPx(),
+ Margin = new Extents(0, (ushort)(DeviceInfo.IsPortrait ? 0 : 48), 0, 0).DpToPx(),
FontStyle = UIFontStyles.NormalLight,
MaxLength = 65,
};
crossButton = new Button("ClearButton")
{
ThemeChangeSensitive = true,
- Position2D = new Position2D(976, 6).DpToPx(),
+ Position2D = new Position2D((DeviceInfo.IsPortrait ? 808 : 976), 6).DpToPx(),
};
crossButton.Clicked += (object o, ClickedEventArgs e) =>
{