Titlebar tweaks
This commit is contained in:
parent
c49d41d6a8
commit
9d6bb2fc43
|
@ -68,8 +68,6 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
|
||||||
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
|
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
|
||||||
{
|
{
|
||||||
m_window = new MainWindow();
|
m_window = new MainWindow();
|
||||||
m_window.ExtendsContentIntoTitleBar = true;
|
|
||||||
|
|
||||||
m_window.Title = "PowerToys Settings";
|
m_window.Title = "PowerToys Settings";
|
||||||
m_window.Activate();
|
m_window.Activate();
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
|
this.ExtendsContentIntoTitleBar = true;
|
||||||
this.SetTitleBar(CustomTitleBar); // This should work according to docs, but it doesn't.... So disabling for now together with ExtendsContentIntoTitleBar
|
this.SetTitleBar(CustomTitleBar); // This should work according to docs, but it doesn't.... So disabling for now together with ExtendsContentIntoTitleBar
|
||||||
|
|
||||||
// send IPC Message
|
// send IPC Message
|
||||||
|
|
Loading…
Reference in a new issue