mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System;
|
|
using Bit.App.Controls;
|
|
using Bit.App.Resources;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Pages
|
|
{
|
|
public class MainPage : ExtendedTabbedPage
|
|
{
|
|
public MainPage()
|
|
{
|
|
TintColor = Color.FromHex("3c8dbc");
|
|
|
|
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
|
|
var favoritesNavigation = new ExtendedNavigationPage(new VaultListSitesPage(true));
|
|
var vaultNavigation = new ExtendedNavigationPage(new VaultListSitesPage(false));
|
|
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
|
|
|
favoritesNavigation.Title = AppResources.Favorites;
|
|
favoritesNavigation.Icon = "star";
|
|
|
|
vaultNavigation.Title = AppResources.MyVault;
|
|
vaultNavigation.Icon = "fa-lock";
|
|
|
|
toolsNavigation.Title = AppResources.Tools;
|
|
toolsNavigation.Icon = "wrench";
|
|
|
|
settingsNavigation.Title = AppResources.Settings;
|
|
settingsNavigation.Icon = "cogs";
|
|
|
|
Children.Add(favoritesNavigation);
|
|
Children.Add(vaultNavigation);
|
|
Children.Add(toolsNavigation);
|
|
Children.Add(settingsNavigation);
|
|
}
|
|
}
|
|
}
|