if (iconRelativeOrientation == IconOrientation.Left || iconRelativeOrientation == IconOrientation.Right)
{
- lengthWithoutText += (itemSpacing?.Width ?? 0) + iconMargin.Start + iconMargin.End + textMargin.Start + textMargin.End;
+ lengthWithoutText += (itemSpacing?.Width ?? 0) + iconMargin.Start + iconMargin.End + textMargin.Start + textMargin.End + Padding.Start + Padding.End;
}
else
{
- lengthWithoutText += (itemSpacing?.Height ?? 0) + iconMargin.Top + iconMargin.Bottom + textMargin.Top + textMargin.Bottom;
+ lengthWithoutText += (itemSpacing?.Height ?? 0) + iconMargin.Top + iconMargin.Bottom + textMargin.Top + textMargin.Bottom + Padding.Top + Padding.Bottom;
}
}
}
// 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,
// 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,
// 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,