bitwarden-android/src/App/Pages/MainPage.cs

30 lines
944 B
C#
Raw Normal View History

2016-05-03 00:50:16 +03:00
using System;
using Bit.App.Resources;
2016-05-03 00:50:16 +03:00
using Xamarin.Forms;
namespace Bit.App.Pages
{
public class MainPage : TabbedPage
{
public MainPage()
{
var settingsNavigation = new NavigationPage(new SettingsPage());
2016-05-03 00:50:16 +03:00
var vaultNavigation = new NavigationPage(new VaultListPage());
var syncPage = new SyncPage();
vaultNavigation.BarBackgroundColor = settingsNavigation.BarBackgroundColor = Color.FromHex("3c8dbc");
vaultNavigation.BarTextColor = settingsNavigation.BarTextColor = Color.FromHex("ffffff");
vaultNavigation.Title = AppResources.MyVault;
vaultNavigation.Icon = "fa-lock";
2016-05-03 00:50:16 +03:00
settingsNavigation.Title = AppResources.Settings;
settingsNavigation.Icon = "fa-cogs";
2016-05-03 00:50:16 +03:00
Children.Add(vaultNavigation);
Children.Add(syncPage);
2016-05-03 00:50:16 +03:00
Children.Add(settingsNavigation);
}
}
}