From 8a47e99a2c6213e15e93e32888002df7e3369624 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 18 Aug 2016 08:43:55 -0400 Subject: [PATCH] Fixed extended button renderer. Added styles for it. --- src/App/App.cs | 7 +++++++ src/App/Controls/ExtendedButton.cs | 4 ++-- src/App/Pages/LoginPage.cs | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/App/App.cs b/src/App/App.cs index 3e4ba2335..874fd3f5a 100644 --- a/src/App/App.cs +++ b/src/App/App.cs @@ -296,6 +296,13 @@ namespace Bit.App } }); + Resources.Add(new Style(typeof(ExtendedButton)) + { + Setters = { + new Setter { Property = Button.TextColorProperty, Value = primaryColor } + } + }); + // List View Resources.Add(new Style(typeof(ListView)) diff --git a/src/App/Controls/ExtendedButton.cs b/src/App/Controls/ExtendedButton.cs index 4f5960ae2..d0d3733d0 100644 --- a/src/App/Controls/ExtendedButton.cs +++ b/src/App/Controls/ExtendedButton.cs @@ -9,8 +9,8 @@ namespace Bit.App.Controls public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Thickness), typeof(ExtendedButton), default(Thickness)); public static readonly BindableProperty UppercaseProperty = - BindableProperty.Create(nameof(Padding), typeof(bool), typeof(ExtendedButton), - Device.OS == TargetPlatform.Android ? true : false); + BindableProperty.Create(nameof(Uppercase), typeof(bool), typeof(ExtendedButton), + Device.OnPlatform(iOS: false, Android: true, WinPhone: false)); public Thickness Padding { diff --git a/src/App/Pages/LoginPage.cs b/src/App/Pages/LoginPage.cs index d8b149997..521950d50 100644 --- a/src/App/Pages/LoginPage.cs +++ b/src/App/Pages/LoginPage.cs @@ -103,7 +103,7 @@ namespace Bit.App.Pages var layout = new StackLayout { Children = { table, forgotPasswordButton }, - Spacing = 0 + Spacing = Device.OnPlatform(iOS: 0, Android: 10, WinPhone: 0) }; var scrollView = new ScrollView { Content = layout };