1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

fix gap in theme application resulting in flashing during transitions (#1588)

This commit is contained in:
Matt Portune
2021-10-15 15:46:24 -04:00
committed by Matt Portune
parent b9fc72d436
commit 1b93131a1f
2 changed files with 5 additions and 0 deletions

View File

@@ -385,6 +385,7 @@ namespace Bit.Droid
private void AppearanceAdjustments()
{
Window?.SetStatusBarColor(ThemeHelpers.NavBarBackgroundColor);
Window?.DecorView.SetBackgroundColor(ThemeHelpers.BackgroundColor);
ThemeHelpers.SetAppearance(ThemeManager.GetTheme(true), ThemeManager.OsDarkModeEnabled());
}

View File

@@ -16,6 +16,10 @@ namespace Bit.Droid.Utilities
{
get => ThemeManager.GetResourceColor("MutedColor").ToAndroid();
}
public static Color BackgroundColor
{
get => ThemeManager.GetResourceColor("BackgroundColor").ToAndroid();
}
public static Color NavBarBackgroundColor
{
get => ThemeManager.GetResourceColor("NavigationBarBackgroundColor").ToAndroid();