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