[NUI] Fix CheckBox and Button.Icon sizes in theme
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 3 May 2022 07:42:16 +0000 (16:42 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 09:00:21 +0000 (02:00 -0700)
Since CheckBox.Text size can be increased, CheckBox size should not be
set in theme.
CheckBox.ItemSpacing is set to be 8px.
Since Button.Icon is able not to be set, Button.Icon size should not be
set in theme.

src/Tizen.NUI.Components/Theme/DefaultThemeCommon.cs

index 980b7e3..3e77c4e 100755 (executable)
@@ -52,10 +52,6 @@ namespace Tizen.NUI.Components
                     Selected = new Color(0.624f, 0.239f, 0.0f, 1),
                     Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
                 },
-                Icon = new ImageViewStyle()
-                {
-                    Size = new Size(32, 32),
-                },
                 Text = new TextLabelStyle()
                 {
                     TextColor = new Color("#FDFDFD"),
@@ -66,7 +62,7 @@ namespace Tizen.NUI.Components
             // CheckBox base style
             theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
             {
-                Size = new Size(48, 48),
+                ItemSpacing = new Size2D(16, 16),
                 ItemHorizontalAlignment = HorizontalAlignment.Center,
                 ItemVerticalAlignment = VerticalAlignment.Center,
                 Icon = new ImageViewStyle()