New settings pages (XAML) and improvements to ShellPage. Added more styles for typical margins and textblocks (#1735)

This commit is contained in:
Niels Laute
2020-03-27 16:58:53 +01:00
committed by Lavius Motileng
parent 4243feaf37
commit a84be2ba60
17 changed files with 456 additions and 41 deletions

View File

@@ -35,14 +35,14 @@ namespace Microsoft.PowerToys.Settings.UI.Views
/// <inheritdoc/>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
GeneralSettings settings = SettingsUtils.GetSettings<GeneralSettings>(string.Empty);
//GeneralSettings settings = SettingsUtils.GetSettings<GeneralSettings>(string.Empty);
base.OnNavigatedTo(e);
// load and apply theme settings
this.ReLoadTheme(settings.theme);
// this.ReLoadTheme(settings.theme);
// load run on start up ui settings value and update the ui state.
this.ToggleSwitch_RunAtStartUp.IsOn = settings.startup;
//this.ToggleSwitch_RunAtStartUp.IsOn = settings.startup;
}
/// <summary>