mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-17 13:23:45 +00:00
Address some formatting things and update Packages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user