TextLabel title = new TextLabel();
title.TranslatableText = "CHOOSE_LANGUAGE";
- title.Position2D = new Position2D(410, 160);
- title.Size2D = new Size2D(364, 58);
+ title.Position2D = new Position2D(0, 104);
+ title.Size2D = new Size2D(0, 48);
+ title.WidthResizePolicy = ResizePolicyType.FillToParent;
title.TextColor = new Color(0, 20.0f / 255.0f, 71.0f / 255.0f, 1.0f);
title.HorizontalAlignment = HorizontalAlignment.Center;
title.Ellipsis = false;
- title.PixelSize = 48.0f;
+ title.PixelSize = 40.0f;
title.FontFamily = "BreezeSans";
title.FontStyle = new PropertyMap().AddLightFontStyle();
TextLabel title = new TextLabel();
title.TranslatableText = "CHOOSE_REGION";
- title.Position2D = new Position2D(410, 160);
- title.Size2D = new Size2D(364, 58);
+ title.Position2D = new Position2D(0, 104);
+ title.Size2D = new Size2D(0, 48);
+ title.WidthResizePolicy = ResizePolicyType.FillToParent;
title.TextColor = new Color(0, 20.0f/255.0f, 71.0f/255.0f, 1.0f);
title.HorizontalAlignment = HorizontalAlignment.Center;
title.Ellipsis = false;
- title.PixelSize = 48.0f;
+ title.PixelSize = 40.0f;
title.FontFamily = "BreezeSans";
title.FontStyle = new PropertyMap().AddLightFontStyle();
TextLabel title = new TextLabel();
title.TranslatableText = "TERMS_AND_CONDITIONS";
- title.Position2D = new Position2D(163, 20);
+ title.Position2D = new Position2D(0, 40);
title.HorizontalAlignment = HorizontalAlignment.Center;
- title.Size2D = new Size2D(864, 58);
+ title.Size2D = new Size2D(0, 50);
+ title.WidthResizePolicy = ResizePolicyType.FillToParent;
title.TextColor = new Color(0, 20.0f / 255.0f, 71.0f / 255.0f, 1.0f);
- title.PixelSize = 48.0f;
+ title.PixelSize = 40.0f;
title.FontFamily = "BreezeSans";
title.FontStyle = new PropertyMap().AddLightFontStyle();
View bounding = new View();
bounding.BackgroundImage = NUIApplication.Current.DirectoryInfo.Resource + "Rectangle 861.svg";
- bounding.Position2D = new Position2D(56 - 6, 95 - 6);
- bounding.Size2D = new Size2D(1087, 347);
+ // subtract 6 pixels due to top/left offset in resource file
+ bounding.Position2D = new Position2D(56 - 6, 112 - 6);
+ bounding.Size2D = new Size2D(1086, 331);
ScrollableBase scroller = new ScrollableBase();
- scroller.Position2D = new Position2D(56 - 6 + 64, 95 - 6 + 24);
- scroller.Size2D = new Size2D(1087 - 128, 347 - 48);
+ scroller.Position2D = new Position2D(120, 136);
+ scroller.Size2D = new Size2D(944, 268);
// Do not use style on content as it seriously impacts scrolling
// performance on ScrollableBase
TextLabel content = new TextLabel();
content.TextColor = new Color(0, 12.0f / 255.0f, 43.0f / 255.0f, 1.0f);
- content.PointSize = 16.0f;
+ content.PixelSize = 18.0f;
content.FontFamily = "BreezeSans";
content.Text = terms.LoadTerms();
content.LineWrapMode = LineWrapMode.Character;
prev.SetFontStyle(new PropertyMap().AddRegularFontStyle());
TextLabel guide = new TextLabel(TextLabelStyles.GuideTextLabelStyle);
- guide.Position2D = new Position2D(155, 442);
+ guide.Position2D = new Position2D(160, 440);
guide.TranslatableText = "YOU_MUST_SCROLL_DOWN_AND_READ_THE_WHOLE_TEXT_ABOVE";
agreeSwitch = new Switch(SwitchStyles.IHaveReadAndAgreeSwitchStyle);
agreeSwitch.Size2D = new Size2D(24, 24);
- agreeSwitch.Position2D = new Position2D(115, 463);
+ agreeSwitch.Position2D = new Position2D(120, 463);
agreeSwitch.IsSelected = false;
agreeSwitch.IsEnabled = false;
agreeSwitch.ClickEvent += (obj, args) =>
agreeLabel = new TextLabel(TextLabelStyles.IHaveReadAndAgreeTextStyleDisabled);
agreeLabel.State = States.Disabled;
agreeLabel.TranslatableText = "I_HAVE_READ_AND_AGREE_TO_TERMS_AND_CONDITIONS";
- agreeLabel.Position2D = new Position2D(155, 463);
+ agreeLabel.Position2D = new Position2D(160, 462);
this.Add(title);
this.Add(prev);
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1087" height="347" viewBox="0 0 1087 347">\r
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1087" height="331" viewBox="0 0 1087 331">\r
<defs>\r
- <filter id="Rectangle_861" x="0" y="0" width="1087" height="347" filterUnits="userSpaceOnUse">\r
+ <filter id="Rectangle_861" x="0" y="0" width="1087" height="331" filterUnits="userSpaceOnUse">\r
<feOffset dx="1" dy="1" input="SourceAlpha"/>\r
<feGaussianBlur stdDeviation="2.5" result="blur"/>\r
<feFlood flood-opacity="0.161"/>\r
</filter>\r
</defs>\r
<g transform="matrix(1, 0, 0, 1, 0, 0)" filter="url(#Rectangle_861)">\r
- <rect id="Rectangle_861-2" data-name="Rectangle 861" width="1072" height="332" rx="28" transform="translate(6.5 6.5)" fill="#fff"/>\r
+ <rect id="Rectangle_861-2" data-name="Rectangle 861" width="1072" height="316" rx="28" transform="translate(6.5 6.5)" fill="#fff"/>\r
</g>\r
</svg>\r
\r
TextLabel title = new TextLabel();\r
title.TranslatableText = "WELCOME_TITLE";\r
- title.Position2D = new Position2D(163, 160);\r
- title.Size2D = new Size2D(857, 63);\r
+ title.Position2D = new Position2D(0, 137);\r
+ title.Size2D = new Size2D(0, 50);\r
+ title.WidthResizePolicy = ResizePolicyType.FillToParent;
title.TextColor = new Color(0, 20.0f/255.0f, 71.0f/255.0f, 1.0f);\r
- title.PointSize = 48.0f;\r
+ title.PixelSize = 40.0f;\r
title.HorizontalAlignment = HorizontalAlignment.Center;\r
title.FontFamily = "BreezeSans";\r
title.FontStyle = new PropertyMap().AddLightFontStyle();\r
\r
TextLabel content = new TextLabel();\r
- content.Position2D = new Position2D(81, 247);\r
- content.Size2D = new Size2D(1022, 166);\r
+ content.Position2D = new Position2D(80, 209);\r
+ content.Size2D = new Size2D(1026, 166);\r
content.TextColor = new Color(0, 12.0f/255.0f, 43.0f/255.0f, 1.0f);\r
- content.PointSize = 22.0f;\r
+ content.PixelSize = 22.0f;\r
content.HorizontalAlignment = HorizontalAlignment.Center;\r
content.FontFamily = "BreezeSansLight";\r
content.MultiLine = true;\r
view.Add(new TextLabel()
{
TranslatableText = "CHOOSE_WIFI_NETWORK",
- Size = new Size(0, 58),
+ Size = new Size(0, 50),
WidthResizePolicy = ResizePolicyType.FillToParent,
- Margin = new Extents(0, 0, 20, 8),
- PixelSize = 48.0f,
+ Margin = new Extents(0, 40, 24, 8),
+ PixelSize = 40.0f,
TextColor = new Color(0, 0x14 / 255.0f, 0x47 / 255.0f, 1.0f),
FontFamily = "BreezeSans",
FontStyle = new PropertyMap().AddLightFontStyle(),