[NUI] Fix TextEditor default theme
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 24 Nov 2022 13:09:06 +0000 (22:09 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Fri, 25 Nov 2022 11:50:03 +0000 (20:50 +0900)
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/Style/TextEditorStyle.cs
src/Tizen.NUI/src/public/Theme/DefaultThemeCommon.cs

index a1d046d..19dd948 100755 (executable)
@@ -206,6 +206,36 @@ namespace Tizen.NUI.BaseComponents
             propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).inputOutline = (string)newValue,
             defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).inputOutline);
 
+        /// <summary> The bindable property of SmoothScroll. </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal static readonly BindableProperty SmoothScrollProperty = BindableProperty.Create(nameof(SmoothScroll), typeof(bool?), typeof(TextEditorStyle), null,
+            propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).smoothScroll = (bool?)newValue,
+            defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).smoothScroll);
+
+        /// <summary> The bindable property of SmoothScrollDuration. </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal static readonly BindableProperty SmoothScrollDurationProperty = BindableProperty.Create(nameof(SmoothScrollDuration), typeof(float?), typeof(TextEditorStyle), null,
+            propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).smoothScrollDuration = (float?)newValue,
+            defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).smoothScrollDuration);
+
+        /// <summary> The bindable property of EnableScrollBar. </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal static readonly BindableProperty EnableScrollBarProperty = BindableProperty.Create(nameof(EnableScrollBar), typeof(bool?), typeof(TextEditorStyle), null,
+            propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).enableScrollBar = (bool?)newValue,
+            defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).enableScrollBar);
+
+        /// <summary> The bindable property of ScrollBarShowDuration. </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal static readonly BindableProperty ScrollBarShowDurationProperty = BindableProperty.Create(nameof(ScrollBarShowDuration), typeof(float?), typeof(TextEditorStyle), null,
+            propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).scrollBarShowDuration = (float?)newValue,
+            defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).scrollBarShowDuration);
+
+        /// <summary> The bindable property of ScrollBarFadeDuration. </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        internal static readonly BindableProperty ScrollBarFadeDurationProperty = BindableProperty.Create(nameof(ScrollBarFadeDuration), typeof(float?), typeof(TextEditorStyle), null,
+            propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).scrollBarFadeDuration = (float?)newValue,
+            defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).scrollBarFadeDuration);
+
         /// <summary> The bindable property of EnableSelection. </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(EnableSelection), typeof(bool?), typeof(TextEditorStyle), null,
@@ -324,6 +354,11 @@ namespace Tizen.NUI.BaseComponents
         private string emboss;
         private string inputEmboss;
         private string inputOutline;
+        private bool? smoothScroll;
+        private float? smoothScrollDuration;
+        private bool? enableScrollBar;
+        private float? scrollBarShowDuration;
+        private float? scrollBarFadeDuration;
         private float? pixelSize;
         private bool? enableSelection;
         private bool? matchSystemLanguageDirection;
@@ -605,6 +640,56 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
+        /// The SmoothScroll property.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool? SmoothScroll
+        {
+            get => (bool?)GetValue(SmoothScrollProperty);
+            set => SetValue(SmoothScrollProperty, value);
+        }
+
+        /// <summary>
+        /// The SmoothScrollDuration property.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public float? SmoothScrollDuration
+        {
+            get => (float?)GetValue(SmoothScrollDurationProperty);
+            set => SetValue(SmoothScrollDurationProperty, value);
+        }
+
+        /// <summary>
+        /// The EnableScrollBar property.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool? EnableScrollBar
+        {
+            get => (bool?)GetValue(EnableScrollBarProperty);
+            set => SetValue(EnableScrollBarProperty, value);
+        }
+
+        /// <summary>
+        /// The ScrollBarShowDuration property.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public float? ScrollBarShowDuration
+        {
+            get => (float?)GetValue(ScrollBarShowDurationProperty);
+            set => SetValue(ScrollBarShowDurationProperty, value);
+        }
+
+        /// <summary>
+        /// The ScrollBarFadeDuration property.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public float? ScrollBarFadeDuration
+        {
+            get => (float?)GetValue(ScrollBarFadeDurationProperty);
+            set => SetValue(ScrollBarFadeDurationProperty, value);
+        }
+
+        /// <summary>
         /// The PixelSize property.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
index 2626baf..be84af7 100644 (file)
@@ -96,6 +96,9 @@ namespace Tizen.NUI
                 PrimaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
                 SecondaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
                 CursorWidth = 2,
+                EnableScrollBar = true,
+                ScrollBarShowDuration = 0.8f,
+                ScrollBarFadeDuration = 0.5f,
                 FontSizeScale = Tizen.NUI.FontSizeScale.UseSystemSetting,
                 SelectionHighlightColor = new Vector4(1.00f, 0.38f, 0.00f, 0.30f),
                 GrabHandleColor = new Color(1.00f, 1.00f, 1.00f, 1),