summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers
diff options
context:
space:
mode:
authordarkleem <cdark.lim@samsung.com>2017-05-17 18:52:20 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:25 +0900
commit9cd9a4f1586713c51283eb4cd263280237c6d4e3 (patch)
treedb9d599ecfd5b56b9a3477c4cd736702bdbe8de4 /Xamarin.Forms.Platform.Tizen/Renderers
parentc1bc20515dbac6fc2b37bc0982be2cefe0c9eebf (diff)
downloadxamarin-forms-9cd9a4f1586713c51283eb4cd263280237c6d4e3.tar.gz
xamarin-forms-9cd9a4f1586713c51283eb4cd263280237c6d4e3.tar.bz2
xamarin-forms-9cd9a4f1586713c51283eb4cd263280237c6d4e3.zip
fix default textcolor
Change-Id: I629b2d84f721cc1671b2b027c88b91f164bb4dc5 Signed-off-by: darkleem <cdark.lim@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs4
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs11
2 files changed, 3 insertions, 12 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
index 0f214636..ff96a677 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
@@ -5,8 +5,6 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class EditorRenderer : ViewRenderer<Editor, Native.Entry>
{
- static readonly EColor s_defaultTextColor = EColor.Black;
-
public EditorRenderer()
{
RegisterPropertyHandler(Editor.TextProperty, UpdateText);
@@ -61,7 +59,7 @@ namespace Xamarin.Forms.Platform.Tizen
void UpdateTextColor()
{
- Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative();
+ Control.TextColor = Element.TextColor.ToNative();
}
void UpdateFontSize()
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs
index 7e7c8925..c880098a 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs
@@ -1,17 +1,10 @@
using System;
-using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
-
-using EColor = ElmSharp.Color;
using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.Entry;
namespace Xamarin.Forms.Platform.Tizen
{
public class EntryRenderer : ViewRenderer<Entry, Native.Entry>, IDisposable
{
- static readonly EColor s_defaultTextColor = EColor.Black;
-
- static readonly EColor s_defaultPlaceholderColor = EColor.Gray;
-
public EntryRenderer()
{
RegisterPropertyHandler(Entry.IsPasswordProperty, UpdateIsPassword);
@@ -90,7 +83,7 @@ namespace Xamarin.Forms.Platform.Tizen
void UpdateTextColor()
{
- Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative();
+ Control.TextColor = Element.TextColor.ToNative();
}
void UpdateFontSize()
@@ -125,7 +118,7 @@ namespace Xamarin.Forms.Platform.Tizen
void UpdatePlaceholderColor()
{
- Control.PlaceholderColor = Element.PlaceholderColor.IsDefault ? s_defaultPlaceholderColor : Element.PlaceholderColor.ToNative();
+ Control.PlaceholderColor = Element.PlaceholderColor.ToNative();
}
void UpdateFontWeight()