mirror of
https://github.com/bitwarden/android.git
synced 2024-12-21 00:31:58 +03:00
Fixed extended button renderer. Added styles for it.
This commit is contained in:
parent
1ca4cceec8
commit
8a47e99a2c
3 changed files with 10 additions and 3 deletions
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue