{
public class ButtonStyles
{
- public static ButtonStyle Next = new ButtonStyle{
- BackgroundImage = new Selector<string>{
- Normal = NUIApplication.Current.DirectoryInfo.Resource + "button/02_CTA_empty_active.svg",
- Pressed = NUIApplication.Current.DirectoryInfo.Resource + "button/02_CTA_empty_selected.svg",
- },
- Text = new TextLabelStyle{
- PointSize = new Selector<float?>{
+ public static ButtonStyle Next = GetNextButtonStyle();
+ public static ButtonStyle Previous = new ButtonStyle {
+ Text = new TextLabelStyle {
+ PointSize = new Selector<float?> {
Normal = 22.0f,
Pressed = 24.0f
},
- TextColor = Color.White,
- Text = "CONTINUE",
+ EnableMarkup = true,
+ Text = "PREVIOUS",
+ TextColor = new Selector<Color> {
+ Normal = new Color(0.0f, 20.0f / 255.0f, 71 / 255.0f, 1.0f),
+ Pressed = new Color(41.0f / 255.0f, 91.0f / 255.0f, 178 / 255.0f, 1.0f),
+ }
},
Size2D = new Size2D(240, 72),
};
- public static ButtonStyle Previous = new ButtonStyle{
- Text = new TextLabelStyle{
- PointSize = new Selector<float?>{
+ public static ButtonStyle Skip = GetSkipButtonStyle();
+
+ private static ButtonStyle GetSkipButtonStyle()
+ {
+ var style = GetNextButtonStyle();
+ style.Text.Text = "SKIP";
+ return style;
+ }
+
+ private static ButtonStyle GetNextButtonStyle() => new ButtonStyle {
+ BackgroundImage = new Selector<string>
+ {
+ Normal = NUIApplication.Current.DirectoryInfo.Resource + "button/02_CTA_empty_active.svg",
+ Pressed = NUIApplication.Current.DirectoryInfo.Resource + "button/02_CTA_empty_selected.svg",
+ },
+ Text = new TextLabelStyle
+ {
+ PointSize = new Selector<float?>
+ {
Normal = 22.0f,
Pressed = 24.0f
},
- EnableMarkup = true,
- Text = "PREVIOUS",
- TextColor = new Selector<Color>{
- Normal = new Color(0.0f, 20.0f/255.0f, 71/255.0f, 1.0f),
- Pressed = new Color(41.0f/255.0f, 91.0f/255.0f, 178/255.0f, 1.0f),
- }
+ TextColor = Color.White,
+ Text = "CONTINUE",
},
Size2D = new Size2D(240, 72),
};
{
LinearOrientation = LinearLayout.Orientation.Vertical,
},
- //BackgroundColor = Color.White,
BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "Rectangle_918.png"),
//Size = new Size(480, 401),
- //BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "Rectangle_918.svg"),
};
view.Add(CreateHeader(480, 80));
view.Add(new View() // separator doesn't display
{
Size2D = new Size(400, 1),
- BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "Line_94.svg"),
+ BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "Line_94.png"),
Margin = new Extents(40, 0, 0, 0),
});
Layout = new AbsoluteLayout(),
};
- manualWifi.Add(new View() // icon displays wrongly
+ manualWifi.Add(new View()
{
Position = new Position(29, 20),
- BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "12_icon_addnetwork.svg"),
+ BackgroundImage = System.IO.Path.Combine(NUIApplication.Current.DirectoryInfo.Resource, "12_icon_addnetwork.png"),
});
manualWifi.Add(new TextLabel("Add new...")
using Oobe.Common.Interfaces;
using Oobe.Common.Styles;
using Oobe.Wifi.Controls;
+using Tizen.NUI.Components;
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
Layout = new AbsoluteLayout(),
};
- TextLabel prev = new TextLabel("Previous")
+ var prev = new Button(ButtonStyles.Previous)
{
- PixelSize = 28.0f,
- TextColor = new Color(0, 14.0f / 255.0f, 47.0f / 255.0f, 1.0f),
- FontFamily = "BreezeSans",
- FontStyle = FontsStyles.Light(),
- HorizontalAlignment = HorizontalAlignment.Center,
- Position = new Position(121, 33),
+ Position = new Position(56, 10),
+ Size2D = new Size2D(240, 72),
};
- //var prev = new Button(ButtonStyles.Previous)
- //{
- // Position = new Position(121, 33),
- //};
- //prev.ClickEvent += (s, e) => nav.Previous();
+ prev.ClickEvent += (s, e) => nav.Previous();
view.Add(prev);
- TextLabel next = new TextLabel("Skip")
+ var next = new Button(ButtonStyles.Skip)
{
- PixelSize = 28.0f,
- TextColor = new Color(0, 14.0f / 255.0f, 47.0f / 255.0f, 1.0f),
- FontFamily = "BreezeSans",
- FontStyle = FontsStyles.Light(),
- HorizontalAlignment = HorizontalAlignment.Center,
Position = new Position(888, 10),
+ Size2D = new Size2D(240, 72),
};
- //var next = new Button(ButtonStyles.Next) //skip
- //{
- // Position = new Position(888, 10),
- //};
- //next.ClickEvent += (s, e) => nav.Next();
+ next.ClickEvent += (s, e) => nav.Next();
view.Add(next);
return view;
}