mirror of
https://github.com/bitwarden/mobile.git
synced 2025-02-03 23:11:24 +01:00
fix gap in theme application resulting in flashing during transitions (#1588)
This commit is contained in:
parent
88a1d8d4e8
commit
48e3986264
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user