mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 08:43:21 +00:00
theme manager
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.App.Pages;
|
||||
using Bit.App.Utilities;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Xamarin.Forms;
|
||||
@@ -14,22 +15,7 @@ namespace Bit.App
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// 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"));
|
||||
|
||||
ThemeManager.SetTheme("dark");
|
||||
MainPage = new TabsPage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user