From cd71d395373f6a47816a4e3bc5b7af618ea47b90 Mon Sep 17 00:00:00 2001 From: jaeunchoi <35285222+jaeunchoi@users.noreply.github.com> Date: Thu, 20 Aug 2020 11:20:52 +0900 Subject: [PATCH] [NUI] Add ThumbColor property to Slider (#1878) * [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 | 20 ++++++++++++++++++ .../PreloadStyle/DefaultTheme.cs | 1 + .../nui_component_default_slider_thumb_n.png | Bin 1297 -> 680 bytes 3 files changed, 21 insertions(+) diff --git a/src/Tizen.NUI.Components/Controls/Slider.cs b/src/Tizen.NUI.Components/Controls/Slider.cs index c65ea0bbd..66d7bc6fb 100755 --- a/src/Tizen.NUI.Components/Controls/Slider.cs +++ b/src/Tizen.NUI.Components/Controls/Slider.cs @@ -463,6 +463,26 @@ namespace Tizen.NUI.Components } } + /// + /// Gets or sets the color of the thumb image object. + /// + /// 8 + public Color ThumbColor + { + get + { + return thumbImage?.Color; + } + set + { + if (null != thumbImage) + { + thumbImage.Color = value; + sliderStyle.Thumb.Color = value; + } + } + } + /// /// Gets or sets the color of the background track image object. /// diff --git a/src/Tizen.NUI.Components/PreloadStyle/DefaultTheme.cs b/src/Tizen.NUI.Components/PreloadStyle/DefaultTheme.cs index caf96f6b2..8ebd6fbc8 100755 --- a/src/Tizen.NUI.Components/PreloadStyle/DefaultTheme.cs +++ b/src/Tizen.NUI.Components/PreloadStyle/DefaultTheme.cs @@ -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 { diff --git a/src/Tizen.NUI.Components/res/nui_component_default_slider_thumb_n.png b/src/Tizen.NUI.Components/res/nui_component_default_slider_thumb_n.png index fed03cfd9f9fd747e29de95ea5372d0b8f497458..72ba71bcd45ab05fe880b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