mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
fix gap in theme application resulting in flashing during transitions (#1588)
This commit is contained in:
parent
88a1d8d4e8
commit
48e3986264
2 changed files with 5 additions and 0 deletions
|
@ -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 a new issue