Fixed extended button renderer. Added styles for it.

This commit is contained in:
Kyle Spearrin 2016-08-18 08:43:55 -04:00
parent 1ca4cceec8
commit 8a47e99a2c
3 changed files with 10 additions and 3 deletions

View File

@ -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))

View File

@ -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
{

View File

@ -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 };