Dark theme, navigation
This commit is contained in:
@@ -8,6 +8,7 @@ using Windows.ApplicationModel.Activation;
|
||||
using Windows.ApplicationModel.Core;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.Storage;
|
||||
using Windows.UI.Core;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
@@ -28,8 +29,23 @@ namespace FoxTube
|
||||
/// Initializes the singleton application object. This is the first line of authored code
|
||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
/// </summary>
|
||||
ApplicationDataContainer settings = ApplicationData.Current.LocalSettings;
|
||||
public App()
|
||||
{
|
||||
try
|
||||
{
|
||||
switch((int)settings.Values["themeMode"])
|
||||
{
|
||||
case 0:
|
||||
RequestedTheme = ApplicationTheme.Light;
|
||||
break;
|
||||
case 1:
|
||||
RequestedTheme = ApplicationTheme.Dark;
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
}
|
||||
} catch { }
|
||||
this.InitializeComponent();
|
||||
this.Suspending += OnSuspending;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user