mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 09:43:27 +00:00
Changed all C# control flow block statements to include space between keyword and open paren (#800)
This commit is contained in:
@@ -21,22 +21,22 @@ namespace Bit.App.Utilities
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Variables());
|
||||
|
||||
// Themed variables
|
||||
if(name == "dark")
|
||||
if (name == "dark")
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Dark());
|
||||
UsingLightTheme = false;
|
||||
}
|
||||
else if(name == "black")
|
||||
else if (name == "black")
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Black());
|
||||
UsingLightTheme = false;
|
||||
}
|
||||
else if(name == "nord")
|
||||
else if (name == "nord")
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Nord());
|
||||
UsingLightTheme = false;
|
||||
}
|
||||
else if(name == "light")
|
||||
else if (name == "light")
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Light());
|
||||
UsingLightTheme = true;
|
||||
@@ -44,7 +44,7 @@ namespace Bit.App.Utilities
|
||||
else
|
||||
{
|
||||
var deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService", true);
|
||||
if(deviceActionService?.UsingDarkTheme() ?? false)
|
||||
if (deviceActionService?.UsingDarkTheme() ?? false)
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Dark());
|
||||
UsingLightTheme = false;
|
||||
@@ -60,11 +60,11 @@ namespace Bit.App.Utilities
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Base());
|
||||
|
||||
// Platform styles
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
if (Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new Android());
|
||||
}
|
||||
else if(Device.RuntimePlatform == Device.iOS)
|
||||
else if (Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new iOS());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user