1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-26 10:36:21 +02:00
bitwarden-mobile/src/App/App.xaml.cs

52 lines
1.5 KiB
C#
Raw Normal View History

2019-03-28 22:10:10 +01:00
using Bit.App.Pages;
using System;
2019-03-29 22:54:03 +01:00
using System.Reflection;
2019-03-28 01:12:44 +01:00
using Xamarin.Forms;
2019-03-29 22:54:03 +01:00
using Xamarin.Forms.StyleSheets;
2019-03-28 01:12:44 +01:00
using Xamarin.Forms.Xaml;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace Bit.App
{
public partial class App : Application
{
public App()
{
InitializeComponent();
2019-03-29 22:54:03 +01:00
// TODO: Load theme?
if(false)
{
#pragma warning disable CS0162 // Unreachable code detected
Resources.Add(
#pragma warning restore CS0162 // Unreachable code detected
StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly,
"Bit.App.Css.dark.css"));
}
Resources.Add(
StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly,
"Bit.App.Css.styles.css"));
Resources.Add(
StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly,
$"Bit.App.Css.{Device.RuntimePlatform.ToLowerInvariant()}.css"));
2019-03-29 04:52:33 +01:00
MainPage = new TabsPage();
2019-03-28 01:12:44 +01:00
}
protected override void OnStart()
{
// Handle when your app starts
}
protected override void OnSleep()
{
// Handle when your app sleeps
}
protected override void OnResume()
{
// Handle when your app resumes
}
}
}