mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 01:53:17 +00:00
Android vault add/edit/view button widths, padding, and background color adjusted.
This commit is contained in:
@@ -117,6 +117,12 @@ namespace Bit.App.Controls
|
||||
{
|
||||
Button = new ExtendedButton();
|
||||
imageStackLayout.Children.Add(Button);
|
||||
|
||||
if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
Button.Padding = new Thickness(0);
|
||||
Button.BackgroundColor = Color.Transparent;
|
||||
}
|
||||
}
|
||||
|
||||
Tapped += FormEntryCell_Tapped;
|
||||
|
||||
@@ -84,17 +84,19 @@ namespace Bit.App.Controls
|
||||
|
||||
if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
//if(Button1 != null)
|
||||
//{
|
||||
// Button1.Padding = new Thickness(5);
|
||||
// Button1.BackgroundColor = Color.Transparent;
|
||||
//}
|
||||
//if(Button2 != null)
|
||||
//{
|
||||
// Button2.Padding = new Thickness(5);
|
||||
// Button2.BackgroundColor = Color.Transparent;
|
||||
//}
|
||||
|
||||
buttonStackLayout.Spacing = 5;
|
||||
|
||||
if(Button1 != null)
|
||||
{
|
||||
Button1.Padding = new Thickness(0);
|
||||
Button1.BackgroundColor = Color.Transparent;
|
||||
}
|
||||
if(Button2 != null)
|
||||
{
|
||||
Button2.Padding = new Thickness(0);
|
||||
Button2.BackgroundColor = Color.Transparent;
|
||||
}
|
||||
|
||||
containerStackLayout.AdjustPaddingForDevice();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user