buttonText.Unparent();
overlayImage?.Unparent();
+#pragma warning disable CA2000
+ Size2D cellPadding = String.IsNullOrEmpty(buttonText.Text) ? new Size2D(0, 0) : itemSpacing;
+#pragma warning restore CA2000
+
if (IconRelativeOrientation == IconOrientation.Left)
{
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
LinearAlignment = itemAlignment,
- CellPadding = itemSpacing ?? new Size2D(0, 0)
+ CellPadding = cellPadding
};
Add(buttonIcon);
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
LinearAlignment = itemAlignment,
- CellPadding = itemSpacing ?? new Size2D(0, 0)
+ CellPadding = cellPadding
};
Add(buttonText);
{
LinearOrientation = LinearLayout.Orientation.Vertical,
LinearAlignment = itemAlignment,
- CellPadding = itemSpacing ?? new Size2D(0, 0)
+ CellPadding = cellPadding
};
Add(buttonIcon);
{
LinearOrientation = LinearLayout.Orientation.Vertical,
LinearAlignment = itemAlignment,
- CellPadding = itemSpacing ?? new Size2D(0, 0)
+ CellPadding = cellPadding
};
Add(buttonText);
theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
{
Size = new Size(339, 96),
- CornerRadiusPolicy = VisualTransformPolicyType.Relative,
- CornerRadius = 0.2916f,
+ CornerRadius = 28.0f,
ItemAlignment = LinearLayout.Alignment.Center,
BackgroundColor = new Selector<Color>()
{