[NUI] Add ThumbColor property to Slider (#1878)
authorjaeunchoi <35285222+jaeunchoi@users.noreply.github.com>
Thu, 20 Aug 2020 02:20:52 +0000 (11:20 +0900)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 02:20:52 +0000 (11:20 +0900)
* [NUI] Add ThumbColor property to Slider

- Change Slider's Thumb image into colorless image
- Set default Color for Thumb image

src/Tizen.NUI.Components/Controls/Slider.cs
src/Tizen.NUI.Components/PreloadStyle/DefaultTheme.cs
src/Tizen.NUI.Components/res/nui_component_default_slider_thumb_n.png

index c65ea0b..66d7bc6 100755 (executable)
@@ -464,6 +464,26 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Gets or sets the color of the thumb image object.
+        /// </summary>
+        /// <since_tizen> 8 </since_tizen>
+        public Color ThumbColor
+        {
+            get
+            {
+                return thumbImage?.Color;
+            }
+            set
+            {
+                if (null != thumbImage)
+                {
+                    thumbImage.Color = value;
+                    sliderStyle.Thumb.Color = value;
+                }
+            }
+        }
+
+        /// <summary>
         /// Gets or sets the color of the background track image object.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
index caf96f6..8ebd6fb 100755 (executable)
@@ -315,6 +315,7 @@ namespace Tizen.NUI.Components
                 Thumb = new ImageViewStyle
                 {
                     Size = new Size(50, 50),
+                    Color = new Color("0ea1e6"),
                     ResourceUrl = StyleManager.GetFrameworkResourcePath("nui_component_default_slider_thumb_n.png"),
                     BackgroundImage = new Selector<string>
                     {
index fed03cf..72ba71b 100755 (executable)
Binary files a/src/Tizen.NUI.Components/res/nui_component_default_slider_thumb_n.png and b/src/Tizen.NUI.Components/res/nui_component_default_slider_thumb_n.png differ