This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
1.1.0 Pre Release 5
Pre-release
Pre-release
rookiejava
released this
12 Mar 03:39
·
12 commits
to master
since this release
Nuget
Important Notice 📢
- Introduce to Tizen.Theme.Common (Common UI) 🎉
- The
Tizen.Theme.Common
has been newly added to provide advanced UI controls (such asContentButton
,ContentPopup
,ShadowFrame
and so on) that can be used in common (not present in the UX of a specific product). - For this reason, the common UI controls that were provided in the existing
TV.UIControls
are deprecate and can be used through theTizen.Theme.Common
. See below for detailed changes.
- The
Getting Started with Tizen.Theme.Common
- How to Init
It is same as initializing the Tizen.TV.UIControls.
CommonUI.Init(app);
// Or, you can use InitOptions as followings.
// Make sure that Tizen.Theme.Common.InioOptions. (not Tizen.TV.UIControls.InitOptions)
CommonUI.Init(new InitOptions(app));
- Load the common theme
If you want each control to be applied in the look & feel defined in the common theme file, load it as below.
CommonUI.AddCommonThemeOverlay();
⚠️ To make it work properly,CommonUI.AddCommonThemeOverlay()
should be called after other's Init includingForms.Init()
andUIControls.Init()
.
⚠️ If you want the look and feel of the basic control to be defined according to the platform/product theme rather than the common theme, you can omitCommonUI.AddCommonThemeOverlay()
.
Deprecated APIs Migration Guide ⚡ ⚡ ⚡
The following classes are deprecate from Tizen.TV,UIControls 1.1.0
, and no longer be supported in the future.
Instead, these are provided through the Tizen.Theme.Common
. Please refer to the migration guide below for details.
Tizen.TV.UIControls.Forms.AnimatablePage
→Tizen.Theme.Common.AnimatablePage
Tizen.TV.UIControls.Forms.AnimatedContentPage
→Tizen.Theme.Common.AnimatedContentPage
Tizen.TV.UIControls.Forms.AnimatedNavigationPage
→Tizen.Theme.Common.AnimatedNavigationPage
Tizen.TV.UIControls.Forms.ContentButton
→Tizen.Theme.Common.ContentButton
Tizen.TV.UIControls.Forms.ContentPopup
→Tizen.Theme.Common.ContentPopup
Tizen.TV.UIControls.Forms.ContentPopupManager
→Tizen.Theme.Common.ContentPopupManager
Tizen.TV.UIControls.Forms.EmbeddingControls
→Tizen.Theme.Common.EmbeddingControls
Tizen.TV.UIControls.Forms.EmbeddingControlsConverter
→Tizen.Theme.Common.EmbeddingControlsConverter
Tizen.TV.UIControls.Forms.FileMediaSource
→Tizen.Theme.Common.FileMediaSource
Tizen.TV.UIControls.Forms.FileMediaSourceConverter
→Tizen.Theme.Common.FileMediaSourceConverter
Tizen.TV.UIControls.Forms.FocusFrame
→Tizen.Theme.Common.FocusFrame
Tizen.TV.UIControls.Forms.GridView
→Tizen.Theme.Common.GridView
Tizen.TV.UIControls.Forms.GridViewItemFocusedEventArgs
→Tizen.Theme.Common.GridViewItemFocusedEventArgs
Tizen.TV.UIControls.Forms.IContentPopupRenderer
→Tizen.Theme.Common.IContentPopupRenderer
Tizen.TV.UIControls.Forms.IGridViewController
→Tizen.Theme.Common.IGridViewController
Tizen.TV.UIControls.Forms.IPlatformMediaPlayer
→Tizen.Theme.Common.IPlatformMediaPlayer
Tizen.TV.UIControls.Forms.IVideoOutput
→Tizen.Theme.Common.IVideoOutput
Tizen.TV.UIControls.Forms.MediaPlayer
→Tizen.Theme.Common.MediaPlayer
Tizen.TV.UIControls.Forms.MediaSource
→Tizen.Theme.Common.MediaSource
Tizen.TV.UIControls.Forms.MediaSourceConverter
→Tizen.Theme.Common.MediaSourceConverter
Tizen.TV.UIControls.Forms.MediaView
→Tizen.Theme.Common.MediaView
Tizen.TV.UIControls.Forms.OverlayMediaView
→Tizen.Theme.Common.OverlayMediaView
Tizen.TV.UIControls.Forms.OverlayPage
→Tizen.Theme.Common.OverlayPage
Tizen.TV.UIControls.Forms.PlaybackState
→Tizen.Theme.Common.PlaybackState
Tizen.TV.UIControls.Forms.UriMediaSource
→Tizen.Theme.Common.UriMediaSource
New Controls 🎉
[CommonUI] ShadowFrame (#87)
ShadowFrame
is aFrame
that allows you to customize the border and shadow related properties.
Property | Description | Remark |
---|---|---|
CornerRadius |
Each individual corner's radius. | Frame.CornerRadius is ignored. |
BorderWidth |
The width of frame border. | The default value is 1.0 . |
ShadowColor |
The color of shadow. | The default value is #3E000000 . |
ShadowOpacity |
The opacity of shadow. | The default value is 0.24 . |
ShadowBlurRadius |
The radius of shadow blur effect. | The default value is 10.0 . |
ShadowOffsetX |
The x-axis offset of shadow. | The default value is 0.0 . |
ShadowOffsetX |
The x-axis offset of shadow. | The default value is 8.0 . |
⚠️ Make sure that in order to useShadowFrame
, you must setUseSkiaSharp
totrue
whenForms.Init()
.
var option = new InitializationOptions(app)
{
//Using DP without device scaling mode
DisplayResolutionUnit = DisplayResolutionUnit.DP(),
UseSkiaSharp = true
};
Forms.Init(option);