diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-05-16 18:38:46 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:25 +0900 |
commit | 3969d3b8810caf9bd95432c1199c2bd1ff7c8cc2 (patch) | |
tree | 63395c2c2329b52ffddc85bf11be581b15825d4e | |
parent | 584ba47bea686b119aaca2485fed37159ad8df8a (diff) | |
download | xamarin-forms-3969d3b8810caf9bd95432c1199c2bd1ff7c8cc2.tar.gz xamarin-forms-3969d3b8810caf9bd95432c1199c2bd1ff7c8cc2.tar.bz2 xamarin-forms-3969d3b8810caf9bd95432c1199c2bd1ff7c8cc2.zip |
Remove unneccesarry default color setting for PickerRenderer
- This patch includes Date/TimePickerRenerer changes as well.
Change-Id: I642ba98d7688b72ee60792700c5c660e9e3bf5e3
3 files changed, 3 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs index aed7b9d6..f7aef30f 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs @@ -7,7 +7,6 @@ namespace Xamarin.Forms.Platform.Tizen { //TODO need to add internationalization support const string DialogTitle = "Choose Date"; - static readonly EColor s_defaultTextColor = EColor.White; public DatePickerRenderer() { @@ -70,7 +69,7 @@ namespace Xamarin.Forms.Platform.Tizen void UpdateTextColor() { - Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative(); + Control.TextColor = Element.TextColor.ToNative(); } } diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs index 6080d647..663e56b1 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs @@ -8,7 +8,6 @@ namespace Xamarin.Forms.Platform.Tizen { public class PickerRenderer : ViewRenderer<Picker, Native.Button> { - static readonly EColor s_defaultTextColor = EColor.White; internal List _list; internal Native.Dialog _dialog; Dictionary<ListItem, int> _itemToItemNumber = new Dictionary<ListItem, int>(); @@ -62,7 +61,7 @@ namespace Xamarin.Forms.Platform.Tizen void UpdateTextColor() { - Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative(); + Control.TextColor = Element.TextColor.ToNative(); } void OnClick(object sender, EventArgs e) diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TimePickerRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TimePickerRenderer.cs index 9f964c18..68e697ed 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/TimePickerRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/TimePickerRenderer.cs @@ -11,8 +11,6 @@ namespace Xamarin.Forms.Platform.Tizen static readonly string s_defaultFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern; - static readonly EColor s_defaultTextColor = EColor.White; - string _format; TimeSpan _time; @@ -83,7 +81,7 @@ namespace Xamarin.Forms.Platform.Tizen void UpdateTextColor() { - Control.TextColor = Element.TextColor.IsDefault ? s_defaultTextColor : Element.TextColor.ToNative(); + Control.TextColor = Element.TextColor.ToNative(); } void UpdateTime() |