[NUI] Re-design theme resource structure from the tizen-theme-manager (#2633)
authorJiyun Yang <ji.yang@samsung.com>
Fri, 26 Feb 2021 07:15:40 +0000 (16:15 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 3 Mar 2021 07:56:53 +0000 (16:56 +0900)
commit4e2330536d29cbc51d0b2264574fcdd32ebe4ced
tree07c8fcc7efef7cf58087905b9413361f12fe7da7
parent963f0a40a4361dc772b6bc9a0b5d05e9ac9f2841
[NUI] Re-design theme resource structure from the tizen-theme-manager (#2633)

* [NUI] Fix Selector bug and code by throwing proper exception.

* Fix multiple items bug
* Throw proper exception

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Add Theme.Version and improve GetStyle API

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Remove build warning and move IThemeCreator to the new file from the ThemeManager

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Re-design theme resource structure from the tizen-theme-manager

This patch fixes problem that
the data from the tizen-theme-manager was not able to express mutually exclusive style properties,
such as, BackgroundColor and BackgroundImage.

* IExternalTheme
  * The wrapper interface to express external theme such as Tizen.Applications.ThemeManager.Theme.
  * TizenExternalTheme : Wrapped Tizen.Applications.ThemeManager.Theme.
  * DictionaryExternalTheme : Wrapped Dicrionary<stirng, string>. (for testing)
* ExternalKeyList
  * This class defines a set of keys used in external theme syntax.
  * A set of ExternalKeyList is held by a ThemeCreator in each package.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Fix CornerRadius Policy not applied issue

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
21 files changed:
src/Tizen.NUI.Components/Controls/Control.cs
src/Tizen.NUI.Components/Theme/DefaultTheme.cs
src/Tizen.NUI.Components/Theme/DefaultThemeCommon.cs [new file with mode: 0644]
src/Tizen.NUI.Components/Theme/DefaultThemeMobile.cs [deleted file]
src/Tizen.NUI.Components/Theme/DefaultThemeWearable.cs
src/Tizen.NUI.Components/Utils/StyleManager.cs
src/Tizen.NUI.Wearable/src/internal/Theme/DefaultTheme.cs
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/Style/Selector.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs
src/Tizen.NUI/src/public/Theme/DefaultTheme.cs
src/Tizen.NUI/src/public/Theme/DictionaryExternalTheme.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/Theme/ExternalThemeKeyList.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/Theme/ExternalThemeManager.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/Theme/IExternalTheme.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/Theme/IThemeCreator.cs [moved from src/Tizen.NUI/src/public/Theme/DefaultThemeWearable.cs with 70% similarity]
src/Tizen.NUI/src/public/Theme/Theme.cs
src/Tizen.NUI/src/public/Theme/ThemeManager.cs
src/Tizen.NUI/src/public/Theme/TizenExternalTheme.cs [new file with mode: 0644]