// Button base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
{
- Size = new Size(252, 48),
+ MinimumSize = new Size(252, 48),
+ Padding = new Extents(32, 32, 8, 8),
ItemSpacing = new Size2D(8, 8),
CornerRadius = 12.0f,
ItemHorizontalAlignment = HorizontalAlignment.Center,
{
TextColor = new Color("#FDFDFD"),
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
// Outlined Button style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
{
- Size = new Size(252, 48),
+ MinimumSize = new Size(252, 48),
+ Padding = new Extents(32, 32, 8, 8),
ItemSpacing = new Size2D(8, 8),
CornerRadius = 12.0f,
BorderlineWidth = 2.0f,
Disabled = new Color("#CACACA"),
},
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
// TextOnly Button style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
{
- SizeHeight = 48,
MinimumSize = new Size(120, 48),
Padding = new Extents(32, 32, 8, 8),
ItemHorizontalAlignment = HorizontalAlignment.Center,
Disabled = new Color("#CACACA"),
},
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
{
TextColor = new Color("#090E21"),
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
{
PointSize = 16,
Padding = new Extents(20, 20, 20, 20),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
},
Buttons = new ButtonStyle()
{
- Size = new Size(0, 80),
+ SizeHeight = 80,
CornerRadius = 0,
BackgroundColor = new Selector<Color>()
{
Text = new TextLabelStyle()
{
TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
}
});
{
TextColor = new Color("#090E21"),
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
},
ValueIndicatorImage = new ImageViewStyle()
{
- Size = new Size(16, 24),
- BorderlineWidth = 0.5f,
+ Size = new Size(43, 40),
+ BorderlineWidth = 1.0f,
BorderlineColor = new Color("#FF6200"),
- BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
+ BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.0f),
+ CornerRadius = 12.0f,
},
+ ValueIndicatorText = new TextLabelStyle()
+ {
+ SizeHeight = 24,
+ PixelSize = 16,
+ TextColor = new Color("#FF6200"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
+ }
});
// Switch base style
{
TextColor = new Color("#090E21"),
PixelSize = 24,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
}
});
Disabled = new Color("#CACACA"),
Selected = new Color("#FF6200"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
SubLabel = new TextLabelStyle()
Disabled = new Color("#CACACA"),
Selected = new Color("#FF6200"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
Icon = new ViewStyle()
Disabled = new Color("#CACACA"),
Selected = new Color("#FF6200"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
Badge = new ViewStyle()
Ellipsis = true,
FontFamily = "SamsungOneUI400",
TextColor = new Color("#090E217F"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
Icon = new ViewStyle()
{
Normal = new Color("#17234D"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
ActionView = new ViewStyle()
Pressed = new Color("#D95300"),
Disabled = new Color("#CACACA"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
},
Icon = new ImageViewStyle()
{
PixelSize = 24,
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
- Size = new Size(0, 44),
+ SizeHeight = 44,
TextColor = new Selector<Color>()
{
Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
},
BackgroundColor = new Color("#FAFAFA"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
},
StartScrollOffset = new Size(0, 0),
});
Focused = new Color("#FF6200"),
Disabled = new Color("#CACACA"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false,
},
Icon = new ImageViewStyle()
VerticalAlignment = VerticalAlignment.Center,
Padding = new Extents(16, 16, 16, 16),
PositionY = 120,
+ FontSizeScale = FontSizeScale.UseSystemSetting,
});
// AlertDialog base style
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
TextColor = new Color("#090E21"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false,
},
MessageTextLabel = new TextLabelStyle()
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
TextColor = new Color("#090E21"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false,
},
ActionContent = new ViewStyle()
PixelSize = 24,
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
- Size = new Size(0, 44),
+ SizeHeight = 44,
TextColor = new Selector<Color>()
{
Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
},
BackgroundColor = new Color("#FAFAFA"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
StartScrollOffset = new Size2D(0, 0),
PixelSize = 24,
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
- Size = new Size(0, 44),
+ SizeHeight = 44,
TextColor = new Selector<Color>()
{
Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
},
BackgroundColor = new Color("#FAFAFA"),
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
StartScrollOffset = new Size2D(0, 0),
// Menu base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
{
+ BackgroundColor = Color.Transparent,
Content = new ViewStyle()
{
BackgroundColor = new Color("#FFFEFE"),
Disabled = new Color("#CACACA"),
Selected = new Color("#FF6200"),
},
+ FontSizeScale = FontSizeScale.UseSystemSetting,
ThemeChangeSensitive = false
},
Icon = new ImageViewStyle()