Address some formatting things and update Packages

This commit is contained in:
2021-08-06 22:35:21 -05:00
parent e08ba30d91
commit 67741eccee
26 changed files with 8042 additions and 9159 deletions
+9 -12
View File
@@ -20,20 +20,14 @@ namespace qController
public static double WidthUnit;
public static bool MenuIsPresented
{
get
{
return rootPage.IsPresented;
}
set
{
rootPage.IsPresented = value;
}
get => rootPage.IsPresented;
set => rootPage.IsPresented = value;
}
public App()
{
InitializeComponent();
App.Current.RequestedThemeChanged += Current_RequestedThemeChanged;
Current.RequestedThemeChanged += Current_RequestedThemeChanged;
SetAppResources();
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
@@ -83,7 +77,7 @@ namespace qController
private void SetAppResources()
{
switch (App.Current.RequestedTheme)
switch (Current.RequestedTheme)
{
case OSAppTheme.Light:
SetLightResources();
@@ -95,6 +89,9 @@ namespace qController
//Default to Light
SetLightResources();
break;
default:
SetLightResources();
break;
}
}
@@ -171,7 +168,7 @@ namespace qController
public static void showToast(string message)
{
var toastConfig = new ToastConfig(message);
ToastConfig toastConfig = new ToastConfig(message);
toastConfig.SetDuration(3000);
toastConfig.SetPosition(ToastPosition.Bottom);
UserDialogs.Instance.Toast(toastConfig);
@@ -179,7 +176,7 @@ namespace qController
public static void ShowMenu(object sender, EventArgs e)
{
App.MenuIsPresented = true;
MenuIsPresented = true;
}
}
}