[NUI] rename from styleSheet to styleName (#1937)
authorYeongJong Lee <cleanlyj@naver.com>
Thu, 27 Aug 2020 06:55:48 +0000 (15:55 +0900)
committerGitHub <noreply@github.com>
Thu, 27 Aug 2020 06:55:48 +0000 (15:55 +0900)
Since `StyleSheet` is used in Dali with the JSON file format, this rename will
avoid name confusion.

Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Control.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs

index 0d608bc..54e9c93 100755 (executable)
@@ -94,22 +94,22 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
-        /// Construct with styleSheet
+        /// Construct with style name
         /// </summary>
-        /// <param name="styleSheet">StyleSheet to be applied</param>
+        /// <param name="styleName">The name of style in the current theme to be applied</param>
         /// <since_tizen> 6 </since_tizen>
         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Control(string styleSheet) : base()
+        public Control(string styleName) : base()
         {
-            ViewStyle viewStyle = StyleManager.Instance.GetViewStyle(styleSheet);
+            ViewStyle viewStyle = StyleManager.Instance.GetViewStyle(styleName);
             if (viewStyle == null)
             {
-                throw new InvalidOperationException($"There is no style {styleSheet}");
+                throw new InvalidOperationException($"There is no style {styleName}");
             }
 
             ApplyStyle(viewStyle);
-            this.StyleName = styleSheet;
+            this.StyleName = styleName;
 
             Initialize();
         }
index 29e716b..0612f57 100755 (executable)
@@ -227,6 +227,7 @@ namespace Tizen.NUI.BaseComponents
 
         /// <summary>
         /// The StyleName, type string.
+        /// The value indicates DALi style name defined in json theme file.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public string StyleName
index 72540a6..ceb3236 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.NUI.BaseComponents
     public partial class View
     {
         /// <summary>
-        /// StyleNameProperty
+        /// StyleNameProperty (DALi json)
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>