mirror of
https://github.com/bitwarden/android.git
synced 2024-12-21 00:31:58 +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(Device.OS == TargetPlatform.Android)
|
||||||
{
|
{
|
||||||
if(Button1 != null)
|
//if(Button1 != null)
|
||||||
{
|
//{
|
||||||
Button1.Padding = new Thickness(5);
|
// Button1.Padding = new Thickness(5);
|
||||||
}
|
// Button1.BackgroundColor = Color.Transparent;
|
||||||
if(Button2 != null)
|
//}
|
||||||
{
|
//if(Button2 != null)
|
||||||
Button2.Padding = new Thickness(5);
|
//{
|
||||||
}
|
// Button2.Padding = new Thickness(5);
|
||||||
|
// Button2.BackgroundColor = Color.Transparent;
|
||||||
|
//}
|
||||||
|
|
||||||
containerStackLayout.AdjustPaddingForDevice();
|
containerStackLayout.AdjustPaddingForDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
containerStackLayout.Children.Add(buttonStackLayout);
|
containerStackLayout.Children.Add(buttonStackLayout);
|
||||||
|
|
||||||
View = containerStackLayout;
|
View = containerStackLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,8 @@ namespace Bit.App.Pages
|
||||||
VerticalOptions = LayoutOptions.End,
|
VerticalOptions = LayoutOptions.End,
|
||||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||||
HorizontalOptions = LayoutOptions.Fill,
|
HorizontalOptions = LayoutOptions.Fill,
|
||||||
BackgroundColor = Color.Transparent
|
BackgroundColor = Color.Transparent,
|
||||||
|
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button))
|
||||||
};
|
};
|
||||||
|
|
||||||
var buttonStackLayout = new StackLayout
|
var buttonStackLayout = new StackLayout
|
||||||
|
|
|
@ -45,12 +45,13 @@ namespace Bit.App.Pages
|
||||||
Text = "See Development Progress",
|
Text = "See Development Progress",
|
||||||
Command = new Command(() =>
|
Command = new Command(() =>
|
||||||
{
|
{
|
||||||
_googleAnalyticsService.TrackAppEvent("SeeProgress");
|
_googleAnalyticsService.TrackAppEvent("SeeAutofillProgress");
|
||||||
Device.OpenUri(new Uri("https://github.com/bitwarden/mobile/issues/1"));
|
Device.OpenUri(new Uri("https://github.com/bitwarden/mobile/issues/1"));
|
||||||
}),
|
}),
|
||||||
VerticalOptions = LayoutOptions.End,
|
VerticalOptions = LayoutOptions.End,
|
||||||
HorizontalOptions = LayoutOptions.Fill,
|
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
|
var stackLayout = new StackLayout
|
||||||
|
|
|
@ -128,9 +128,10 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
var addSiteButton = new ExtendedButton
|
var addSiteButton = new ExtendedButton
|
||||||
{
|
{
|
||||||
Text = "Add a site",
|
Text = "Add a Site",
|
||||||
IsVisible = !_favorites,
|
Command = new Command(() => AddSite()),
|
||||||
Command = new Command(() => AddSite())
|
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||||
|
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button))
|
||||||
};
|
};
|
||||||
|
|
||||||
NoDataStackLayout.Children.Add(addSiteButton);
|
NoDataStackLayout.Children.Add(addSiteButton);
|
||||||
|
|
Loading…
Reference in a new issue