1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-03 17:13:50 +00:00

more theming

This commit is contained in:
Kyle Spearrin
2019-05-29 16:44:18 -04:00
parent a1741fdd67
commit 3fe7324cdf
24 changed files with 429 additions and 341 deletions

View File

@@ -5,6 +5,7 @@ using Android.OS;
using Android.Support.V7.App;
using System.Threading.Tasks;
using Android.Content;
using Bit.App.Utilities;
namespace Bit.Droid
{
@@ -21,6 +22,7 @@ namespace Bit.Droid
{
public override void OnCreate(Bundle savedInstanceState, PersistableBundle persistentState)
{
UpdateTheme(ThemeManager.GetTheme());
base.OnCreate(savedInstanceState, persistentState);
}
@@ -35,5 +37,17 @@ namespace Bit.Droid
});
startupWork.Start();
}
private void UpdateTheme(string theme)
{
if(theme == "dark")
{
SetTheme(Resource.Style.DarkTheme_Splash);
}
else
{
SetTheme(Resource.Style.MainTheme_Splash);
}
}
}
}