diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml index 9d2ea7d23..8e5683b21 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml @@ -15,6 +15,11 @@ + Green + LightGreen + Red + Pink + 6,16,16,16 16,0,0,0 240 diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml.cs index cfd314328..7d477602c 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml.cs +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/App.xaml.cs @@ -63,11 +63,13 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3 /// will be used such as when the application is launched to open a specific file. /// /// Details about the launch request and process. + + private MainWindow m_window; protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) - { + { m_window = new MainWindow(); - //m_window.ExtendsContentIntoTitleBar = true; - //m_window.SetTitleBar(m_window.CustomTitleBar); // This should work according to docs, but it doesn't.... So disabling for now together with ExtendsContentIntoTitleBar + m_window.ExtendsContentIntoTitleBar = true; + m_window.Title = "PowerToys Settings"; m_window.Activate(); @@ -144,7 +146,6 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3 return selectedTheme == "DARK" || (selectedTheme == "SYSTEM" && uiTheme == "#FF000000"); } - private MainWindow m_window; private static ISettingsUtils settingsUtils = new SettingsUtils(); } } diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml index 513359809..b244e861f 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml @@ -7,17 +7,17 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> - - - + diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml.cs index 32bc1506f..603f65483 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml.cs +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/MainWindow.xaml.cs @@ -17,6 +17,7 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3 public MainWindow() { this.InitializeComponent(); + this.SetTitleBar(CustomTitleBar); // This should work according to docs, but it doesn't.... So disabling for now together with ExtendsContentIntoTitleBar // send IPC Message ShellPage.SetDefaultSndMessageCallback(msg => diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/Views/ShellPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/Views/ShellPage.xaml index c23b0ade1..c57453d9e 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/Views/ShellPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI.WinUI3/Views/ShellPage.xaml @@ -18,8 +18,7 @@ - +