1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-31 15:43:19 +00:00

replace launch and clipboard buttons with icons

This commit is contained in:
Kyle Spearrin
2017-10-19 14:56:11 -04:00
parent d146870a74
commit ebbe704672
28 changed files with 252 additions and 230 deletions

View File

@@ -129,6 +129,7 @@ namespace Bit.App.Controls
{
Button.Padding = new Thickness(0);
Button.BackgroundColor = Color.Transparent;
Button.WidthRequest = 40;
}
}

View File

@@ -7,8 +7,8 @@ namespace Bit.App.Controls
public LabeledValueCell(
string labelText = null,
string valueText = null,
string button1Text = null,
string button2Text = null,
string button1Image = null,
string button2Image = null,
string subText = null)
{
var containerStackLayout = new StackLayout
@@ -69,11 +69,11 @@ namespace Bit.App.Controls
buttonStackLayout.Children.Add(Sub);
}
if(button1Text != null)
if(button1Image != null)
{
Button1 = new ExtendedButton
{
Text = button1Text,
Image = button1Image,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0)
@@ -82,11 +82,11 @@ namespace Bit.App.Controls
buttonStackLayout.Children.Add(Button1);
}
if(button2Text != null)
if(button2Image != null)
{
Button2 = new ExtendedButton
{
Text = button2Text,
Image = button2Image,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0)
@@ -103,11 +103,13 @@ namespace Bit.App.Controls
{
Button1.Padding = new Thickness(0);
Button1.BackgroundColor = Color.Transparent;
Button1.WidthRequest = 40;
}
if(Button2 != null)
{
Button2.Padding = new Thickness(0);
Button2.BackgroundColor = Color.Transparent;
Button2.WidthRequest = 40;
}
containerStackLayout.AdjustPaddingForDevice();