2016-05-03 00:50:16 +03:00
|
|
|
|
using System;
|
2016-05-10 06:25:37 +03:00
|
|
|
|
using Bit.App.Controls;
|
2016-05-07 20:42:09 +03:00
|
|
|
|
using Bit.App.Resources;
|
2016-05-03 00:50:16 +03:00
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
|
|
|
|
{
|
2016-05-10 06:25:37 +03:00
|
|
|
|
public class MainPage : ExtendedTabbedPage
|
2016-05-03 00:50:16 +03:00
|
|
|
|
{
|
|
|
|
|
public MainPage()
|
|
|
|
|
{
|
2016-05-10 06:25:37 +03:00
|
|
|
|
BarTintColor = Color.FromHex("222d32");
|
|
|
|
|
TintColor = Color.FromHex("ffffff");
|
|
|
|
|
|
2016-05-13 07:11:32 +03:00
|
|
|
|
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
|
2016-06-15 06:23:05 +03:00
|
|
|
|
var favoritesNavigation = new ExtendedNavigationPage(new VaultListSitesPage(true));
|
|
|
|
|
var vaultNavigation = new ExtendedNavigationPage(new VaultListSitesPage(false));
|
2016-07-01 05:04:45 +03:00
|
|
|
|
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
2016-05-06 07:17:38 +03:00
|
|
|
|
|
2016-06-14 05:04:25 +03:00
|
|
|
|
favoritesNavigation.Title = AppResources.Favorites;
|
|
|
|
|
favoritesNavigation.Icon = "star";
|
|
|
|
|
|
2016-05-07 20:42:09 +03:00
|
|
|
|
vaultNavigation.Title = AppResources.MyVault;
|
2016-05-06 07:17:38 +03:00
|
|
|
|
vaultNavigation.Icon = "fa-lock";
|
2016-05-03 00:50:16 +03:00
|
|
|
|
|
2016-07-01 05:04:45 +03:00
|
|
|
|
toolsNavigation.Title = AppResources.Tools;
|
|
|
|
|
toolsNavigation.Icon = "fa-refresh";
|
2016-05-07 23:32:29 +03:00
|
|
|
|
|
2016-05-07 20:42:09 +03:00
|
|
|
|
settingsNavigation.Title = AppResources.Settings;
|
2016-06-14 06:38:00 +03:00
|
|
|
|
settingsNavigation.Icon = "cogs";
|
2016-05-03 00:50:16 +03:00
|
|
|
|
|
2016-06-14 05:04:25 +03:00
|
|
|
|
Children.Add(favoritesNavigation);
|
2016-05-03 00:50:16 +03:00
|
|
|
|
Children.Add(vaultNavigation);
|
2016-07-01 05:04:45 +03:00
|
|
|
|
Children.Add(toolsNavigation);
|
2016-05-03 00:50:16 +03:00
|
|
|
|
Children.Add(settingsNavigation);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|