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

37 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()
{
2016-05-10 06:25:37 +03:00
BarTintColor = Color.FromHex("222d32");
TintColor = Color.FromHex("ffffff");
var settingsNavigation = new NavigationPage(new SettingsPage());
2016-05-03 00:50:16 +03:00
var vaultNavigation = new NavigationPage(new VaultListPage());
2016-05-07 23:32:29 +03:00
var syncNavigation = new NavigationPage(new SyncPage());
2016-05-07 23:32:29 +03:00
vaultNavigation.BarBackgroundColor = settingsNavigation.BarBackgroundColor = syncNavigation.BarBackgroundColor = Color.FromHex("3c8dbc");
vaultNavigation.BarTextColor = settingsNavigation.BarTextColor = syncNavigation.BarTextColor = Color.FromHex("ffffff");
vaultNavigation.Title = AppResources.MyVault;
vaultNavigation.Icon = "fa-lock";
2016-05-03 00:50:16 +03:00
2016-05-07 23:32:29 +03:00
syncNavigation.Title = AppResources.Sync;
syncNavigation.Icon = "fa-refresh";
settingsNavigation.Title = AppResources.Settings;
settingsNavigation.Icon = "fa-cogs";
2016-05-03 00:50:16 +03:00
Children.Add(vaultNavigation);
2016-05-07 23:32:29 +03:00
Children.Add(syncNavigation);
2016-05-03 00:50:16 +03:00
Children.Add(settingsNavigation);
}
}
}