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:
committed by
Matt Portune
parent
b9fc72d436
commit
1b93131a1f
@@ -385,6 +385,7 @@ namespace Bit.Droid
|
|||||||
private void AppearanceAdjustments()
|
private void AppearanceAdjustments()
|
||||||
{
|
{
|
||||||
Window?.SetStatusBarColor(ThemeHelpers.NavBarBackgroundColor);
|
Window?.SetStatusBarColor(ThemeHelpers.NavBarBackgroundColor);
|
||||||
|
Window?.DecorView.SetBackgroundColor(ThemeHelpers.BackgroundColor);
|
||||||
ThemeHelpers.SetAppearance(ThemeManager.GetTheme(true), ThemeManager.OsDarkModeEnabled());
|
ThemeHelpers.SetAppearance(ThemeManager.GetTheme(true), ThemeManager.OsDarkModeEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ namespace Bit.Droid.Utilities
|
|||||||
{
|
{
|
||||||
get => ThemeManager.GetResourceColor("MutedColor").ToAndroid();
|
get => ThemeManager.GetResourceColor("MutedColor").ToAndroid();
|
||||||
}
|
}
|
||||||
|
public static Color BackgroundColor
|
||||||
|
{
|
||||||
|
get => ThemeManager.GetResourceColor("BackgroundColor").ToAndroid();
|
||||||
|
}
|
||||||
public static Color NavBarBackgroundColor
|
public static Color NavBarBackgroundColor
|
||||||
{
|
{
|
||||||
get => ThemeManager.GetResourceColor("NavigationBarBackgroundColor").ToAndroid();
|
get => ThemeManager.GetResourceColor("NavigationBarBackgroundColor").ToAndroid();
|
||||||
|
|||||||
Reference in New Issue
Block a user