mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 22:33:25 +00:00
About and credit page implementation. Adjusted block screen and launch screen logo margins up some. Added decryption message to extension loading.
This commit is contained in:
@@ -1,24 +1,56 @@
|
||||
using System;
|
||||
using Bit.App.Controls;
|
||||
using Xamarin.Forms;
|
||||
using Bit.App.Abstractions;
|
||||
using XLabs.Ioc;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
public class SettingsAboutPage : ExtendedContentPage
|
||||
{
|
||||
private readonly IAppInfoService _appInfoService;
|
||||
|
||||
public SettingsAboutPage()
|
||||
{
|
||||
_appInfoService = Resolver.Resolve<IAppInfoService>();
|
||||
Init();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
// TODO: version, credits, etc
|
||||
var logo = new Image
|
||||
{
|
||||
Source = "logo",
|
||||
HorizontalOptions = LayoutOptions.Center
|
||||
};
|
||||
|
||||
var stackLayout = new StackLayout { };
|
||||
var versionLabel = new Label
|
||||
{
|
||||
Text = $@"Version {_appInfoService.Version}
|
||||
© 8bit Solutions LLC 2015-{DateTime.Now.Year}",
|
||||
HorizontalTextAlignment = TextAlignment.Center
|
||||
};
|
||||
|
||||
var creditsButton = new Button
|
||||
{
|
||||
Text = "Credits",
|
||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||
Margin = new Thickness(15, 0, 15, 25),
|
||||
Command = new Command(async () => await Navigation.PushAsync(new SettingsCreditsPage())),
|
||||
HorizontalOptions = LayoutOptions.Center
|
||||
};
|
||||
|
||||
var stackLayout = new StackLayout
|
||||
{
|
||||
Children = { logo, versionLabel, creditsButton },
|
||||
VerticalOptions = LayoutOptions.Center,
|
||||
Spacing = 20,
|
||||
Margin = new Thickness(0, 0, 0, 40)
|
||||
};
|
||||
|
||||
Title = "About bitwarden";
|
||||
Content = stackLayout;
|
||||
Content = new ScrollView { Content = stackLayout };
|
||||
NavigationPage.SetBackButtonTitle(this, "About");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user