Files
android/src/App/Pages/MainPage.cs
T

34 lines
1.1 KiB
C#

using System;
using Bit.App.Controls;
using Xamarin.Forms;
using XLabs.Ioc;
using Bit.App.Abstractions;
namespace Bit.App.Pages
{
public class MainPage : ExtendedTabbedPage
{
public MainPage()
{
TintColor = Color.FromHex("3c8dbc");
var vaultNavigation = new ExtendedNavigationPage(new VaultListGroupingsPage());
var passwordGeneratorNavigation = new ExtendedNavigationPage(new ToolsPasswordGeneratorPage());
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
vaultNavigation.Icon = "fa_lock.png";
passwordGeneratorNavigation.Icon = "refresh.png";
toolsNavigation.Icon = "tools.png";
settingsNavigation.Icon = "cogs.png";
Children.Add(vaultNavigation);
Children.Add(passwordGeneratorNavigation);
Children.Add(toolsNavigation);
Children.Add(settingsNavigation);
SelectedItem = vaultNavigation;
}
}
}