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

38 lines
1.2 KiB
C#
Raw Normal View History

2016-05-03 00:50:16 +03:00
using System;
2016-05-10 06:25:37 +03:00
using Bit.App.Controls;
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(string uri = null)
2016-05-03 00:50:16 +03:00
{
TintColor = Color.FromHex("3c8dbc");
2016-05-10 06:25:37 +03:00
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
var favoritesNavigation = new ExtendedNavigationPage(new VaultListLoginsPage(true, uri));
var vaultNavigation = new ExtendedNavigationPage(new VaultListLoginsPage(false, uri));
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
favoritesNavigation.Title = AppResources.Favorites;
favoritesNavigation.Icon = "star";
vaultNavigation.Title = AppResources.MyVault;
2016-07-30 07:46:17 +03:00
vaultNavigation.Icon = "fa_lock";
2016-05-03 00:50:16 +03:00
toolsNavigation.Title = AppResources.Tools;
2016-07-27 06:19:01 +03:00
toolsNavigation.Icon = "tools";
2016-05-07 23:32:29 +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
Children.Add(favoritesNavigation);
2016-05-03 00:50:16 +03:00
Children.Add(vaultNavigation);
Children.Add(toolsNavigation);
2016-05-03 00:50:16 +03:00
Children.Add(settingsNavigation);
}
}
}