From: shmin Date: Tue, 16 Jul 2019 16:07:36 +0000 (+0900) Subject: [Tizen] Fix slider thumb color issue (#6785) X-Git-Tag: accepted/tizen/5.5/unified/20200421.150457~300 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e61fa1c21b6ce257b50d8d87f18db14b07f809d5;p=platform%2Fcore%2Fcsapi%2Fxsf.git [Tizen] Fix slider thumb color issue (#6785) --- diff --git a/Xamarin.Forms.Material.Tizen/MaterialSliderRenderer.cs b/Xamarin.Forms.Material.Tizen/MaterialSliderRenderer.cs index c0eefe4..ed30ace 100644 --- a/Xamarin.Forms.Material.Tizen/MaterialSliderRenderer.cs +++ b/Xamarin.Forms.Material.Tizen/MaterialSliderRenderer.cs @@ -17,5 +17,12 @@ namespace Xamarin.Forms.Material.Tizen } base.OnElementChanged(e); } + + protected override void UpdateThumbColor() + { + var color = Element.ThumbColor.IsDefault ? MColors.Current.PrimaryColor : Element.ThumbColor.ToNative(); + Control.SetPartColor(Parts.Slider.Handler, color); + Control.SetPartColor(Parts.Slider.HandlerPressed, color); + } } } diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs index 9b783de..dc75214 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs @@ -121,7 +121,7 @@ namespace Xamarin.Forms.Platform.Tizen Control.SetPartColor("bg", Element.MaximumTrackColor.IsDefault ? _defaultMaxColor : Element.MaximumTrackColor.ToNative()); } - protected void UpdateThumbColor() + protected virtual void UpdateThumbColor() { var color = Element.ThumbColor.IsDefault ? _defaultThumbColor : Element.ThumbColor.ToNative(); Control.SetPartColor("handler", color);