mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-11 05:52:19 +02:00
[OOBE] Refactor UI code, minor UI tweaks (#16578)
* Move content to dedicated XAML * Select modules enum * Remove redundant code, UI fixes * Markdown rendering tweaks * Address feedback
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Windows;
|
||||
using System.Windows.Interop;
|
||||
using interop;
|
||||
using Microsoft.PowerToys.Settings.UI.Helpers;
|
||||
using Microsoft.PowerToys.Settings.UI.OOBE.Enums;
|
||||
using Microsoft.PowerToys.Settings.UI.OOBE.Views;
|
||||
using Microsoft.Toolkit.Wpf.UI.XamlHost;
|
||||
using Windows.ApplicationModel.Resources;
|
||||
@@ -20,7 +21,7 @@ namespace PowerToys.Settings
|
||||
{
|
||||
private static Window inst;
|
||||
private OobeShellPage shellPage;
|
||||
private int initialModule;
|
||||
private PowerToysModulesEnum initialModule;
|
||||
|
||||
public static bool IsOpened
|
||||
{
|
||||
@@ -30,7 +31,7 @@ namespace PowerToys.Settings
|
||||
}
|
||||
}
|
||||
|
||||
public OobeWindow(int initialModule)
|
||||
public OobeWindow(PowerToysModulesEnum initialModule)
|
||||
{
|
||||
InitializeComponent();
|
||||
Utils.FitToScreen(this);
|
||||
|
||||
Reference in New Issue
Block a user