mirror of
https://github.com/bitwarden/android.git
synced 2024-12-30 04:48:30 +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
|
// List View
|
||||||
|
|
||||||
Resources.Add(new Style(typeof(ListView))
|
Resources.Add(new Style(typeof(ListView))
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Bit.App.Controls
|
||||||
public static readonly BindableProperty PaddingProperty =
|
public static readonly BindableProperty PaddingProperty =
|
||||||
BindableProperty.Create(nameof(Padding), typeof(Thickness), typeof(ExtendedButton), default(Thickness));
|
BindableProperty.Create(nameof(Padding), typeof(Thickness), typeof(ExtendedButton), default(Thickness));
|
||||||
public static readonly BindableProperty UppercaseProperty =
|
public static readonly BindableProperty UppercaseProperty =
|
||||||
BindableProperty.Create(nameof(Padding), typeof(bool), typeof(ExtendedButton),
|
BindableProperty.Create(nameof(Uppercase), typeof(bool), typeof(ExtendedButton),
|
||||||
Device.OS == TargetPlatform.Android ? true : false);
|
Device.OnPlatform(iOS: false, Android: true, WinPhone: false));
|
||||||
|
|
||||||
public Thickness Padding
|
public Thickness Padding
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace Bit.App.Pages
|
||||||
var layout = new StackLayout
|
var layout = new StackLayout
|
||||||
{
|
{
|
||||||
Children = { table, forgotPasswordButton },
|
Children = { table, forgotPasswordButton },
|
||||||
Spacing = 0
|
Spacing = Device.OnPlatform(iOS: 0, Android: 10, WinPhone: 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
var scrollView = new ScrollView { Content = layout };
|
var scrollView = new ScrollView { Content = layout };
|
||||||
|
|
Loading…
Reference in a new issue