remove hard-coded default text color for Button
authorKangho Hur <kangho.hur@samsung.com>
Thu, 27 Apr 2017 04:48:33 +0000 (13:48 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:24 +0000 (11:11 +0900)
Change-Id: I98e4b5030550c63b9c583cd01d7fe7811f949df7

Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs

index 456bb0d..fa4afb0 100644 (file)
@@ -7,8 +7,6 @@ namespace Xamarin.Forms.Platform.Tizen
 {
        public class ButtonRenderer : ViewRenderer<Button, Native.Button>
        {
-               static readonly EColor s_defaultTextColor = EColor.White;
-
                public ButtonRenderer()
                {
                        RegisterPropertyHandler(Button.TextProperty, UpdateText);
@@ -69,7 +67,7 @@ namespace Xamarin.Forms.Platform.Tizen
 
                void UpdateTextColor()
                {
-                       Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative();
+                       Control.TextColor = Element.TextColor.ToNative();
                }
 
                void UpdateBitmap()