mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 09:58:27 +03:00
Android vault add/edit/view button widths, padding, and background color adjusted.
This commit is contained in:
parent
9718e5aace
commit
c72b551e80
6 changed files with 35 additions and 12 deletions
|
@ -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,16 +84,18 @@ 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();
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ namespace Bit.App.Models.Page
|
|||
{
|
||||
return Device.GetNamedSize(NamedSize.Micro, typeof(Label));
|
||||
}
|
||||
else if(length > 15)
|
||||
else if(length > 20)
|
||||
{
|
||||
return Device.GetNamedSize(NamedSize.Small, typeof(Label));
|
||||
}
|
||||
|
|
|
@ -106,6 +106,10 @@ namespace Bit.App.Pages
|
|||
table.RowHeight = -1;
|
||||
table.EstimatedRowHeight = 70;
|
||||
}
|
||||
else if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
PasswordCell.Button.WidthRequest = 40;
|
||||
}
|
||||
|
||||
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
||||
{
|
||||
|
|
|
@ -135,6 +135,10 @@ namespace Bit.App.Pages
|
|||
table.RowHeight = -1;
|
||||
table.EstimatedRowHeight = 70;
|
||||
}
|
||||
else if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
PasswordCell.Button.WidthRequest = 40;
|
||||
}
|
||||
|
||||
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
||||
{
|
||||
|
|
|
@ -107,6 +107,13 @@ namespace Bit.App.Pages
|
|||
Table.RowHeight = -1;
|
||||
Table.EstimatedRowHeight = 70;
|
||||
}
|
||||
else if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
PasswordCell.Button1.WidthRequest = 40;
|
||||
PasswordCell.Button2.WidthRequest = 55;
|
||||
UsernameCell.Button1.WidthRequest = 55;
|
||||
UriCell.Button1.WidthRequest = 71;
|
||||
}
|
||||
|
||||
Title = "View Site";
|
||||
Content = Table;
|
||||
|
|
Loading…
Reference in a new issue