[NUI] Fix MenuItem to add TextLabel and Icon always
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 17 May 2022 08:47:40 +0000 (17:47 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Fri, 27 May 2022 06:15:42 +0000 (15:15 +0900)
commitfabce07115649e0fc04881ab603b9ecf2339dc3b
tree534bc9478ea64ed2b5de59d4824c389f5716864c
parent7a7b1e0bcedc639b334fc024f974ea863dc7361c
[NUI] Fix MenuItem to add TextLabel and Icon always

Previously, MenuItem added TextLabel and Icon only if their properties
were set properly.
e.g. Icon is added only if IconURL is set properly.

Now, MenuItem adds TextLabel and Icon regardless of their properties
like Button does.
Because TextLabel and Icon are MenuItem's default feature so they
should always be added to MenuItem.

Icon's default size in theme is removed until Button has a proper way
to support default Icon size.
src/Tizen.NUI.Components/Controls/MenuItem.cs
src/Tizen.NUI.Components/Theme/DefaultThemeCommon.cs