mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
38 lines
1.2 KiB
C#
38 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()
|
|
{
|
|
BarTintColor = Color.FromHex("222d32");
|
|
TintColor = Color.FromHex("ffffff");
|
|
|
|
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
|
|
var favoritesNavigation = new ExtendedNavigationPage(new VaultListSitesPage());
|
|
var vaultNavigation = new ExtendedNavigationPage(new VaultListSitesPage());
|
|
var syncNavigation = new ExtendedNavigationPage(new SyncPage());
|
|
|
|
favoritesNavigation.Title = AppResources.Favorites;
|
|
favoritesNavigation.Icon = "star";
|
|
|
|
vaultNavigation.Title = AppResources.MyVault;
|
|
vaultNavigation.Icon = "fa-lock";
|
|
|
|
syncNavigation.Title = AppResources.Sync;
|
|
syncNavigation.Icon = "fa-refresh";
|
|
|
|
settingsNavigation.Title = AppResources.Settings;
|
|
settingsNavigation.Icon = "cogs";
|
|
|
|
Children.Add(favoritesNavigation);
|
|
Children.Add(vaultNavigation);
|
|
Children.Add(syncNavigation);
|
|
Children.Add(settingsNavigation);
|
|
}
|
|
}
|
|
}
|