mirror of
https://github.com/bitwarden/android.git
synced 2024-12-19 07:41:52 +03:00
Button styling update
This commit is contained in:
parent
873ebee256
commit
aac4aafde0
4 changed files with 20 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue