Button styling update

This commit is contained in:
Kyle Spearrin 2016-08-26 19:13:25 -04:00
parent 873ebee256
commit aac4aafde0
4 changed files with 20 additions and 17 deletions

View file

@ -84,21 +84,21 @@ namespace Bit.App.Controls
if(Device.OS == TargetPlatform.Android)
{
if(Button1 != null)
{
Button1.Padding = new Thickness(5);
}
if(Button2 != null)
{
Button2.Padding = new Thickness(5);
}
//if(Button1 != null)
//{
// Button1.Padding = new Thickness(5);
// Button1.BackgroundColor = Color.Transparent;
//}
//if(Button2 != null)
//{
// Button2.Padding = new Thickness(5);
// Button2.BackgroundColor = Color.Transparent;
//}
containerStackLayout.AdjustPaddingForDevice();
}
containerStackLayout.Children.Add(buttonStackLayout);
View = containerStackLayout;
}

View file

@ -65,7 +65,8 @@ namespace Bit.App.Pages
VerticalOptions = LayoutOptions.End,
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
HorizontalOptions = LayoutOptions.Fill,
BackgroundColor = Color.Transparent
BackgroundColor = Color.Transparent,
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button))
};
var buttonStackLayout = new StackLayout

View file

@ -45,12 +45,13 @@ namespace Bit.App.Pages
Text = "See Development Progress",
Command = new Command(() =>
{
_googleAnalyticsService.TrackAppEvent("SeeProgress");
_googleAnalyticsService.TrackAppEvent("SeeAutofillProgress");
Device.OpenUri(new Uri("https://github.com/bitwarden/mobile/issues/1"));
}),
VerticalOptions = LayoutOptions.End,
HorizontalOptions = LayoutOptions.Fill,
Style = (Style)Application.Current.Resources["btn-primary"]
Style = (Style)Application.Current.Resources["btn-primary"],
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button))
};
var stackLayout = new StackLayout

View file

@ -128,9 +128,10 @@ namespace Bit.App.Pages
{
var addSiteButton = new ExtendedButton
{
Text = "Add a site",
IsVisible = !_favorites,
Command = new Command(() => AddSite())
Text = "Add a Site",
Command = new Command(() => AddSite()),
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button))
};
NoDataStackLayout.Children.Add(addSiteButton);