mirror of
https://github.com/bitwarden/mobile
synced 2026-01-03 17:13:50 +00:00
more theming
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user