From 3678a8ff3efeb8ab02faa96ac01ffc8792afc8b3 Mon Sep 17 00:00:00 2001 From: RMBGAME Date: Sat, 16 Jul 2022 11:56:56 +0800 Subject: [PATCH] Misc --- .../Application/UI/Views/Windows/WindowBase/FluentWindow.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/WindowBase/FluentWindow.cs b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/WindowBase/FluentWindow.cs index 4828299ba..568687f72 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/WindowBase/FluentWindow.cs +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/WindowBase/FluentWindow.cs @@ -115,7 +115,7 @@ namespace Avalonia.Controls else { ExtendClientAreaToDecorationsHint = true; - ExtendClientAreaTitleBarHeightHint = -1; + ExtendClientAreaTitleBarHeightHint = System.Application.UI.Views.Controls.TitleBar.DefaultHeight; ExtendClientAreaChromeHints = ExtendClientAreaChromeHints.PreferSystemChrome; @@ -126,7 +126,7 @@ namespace Avalonia.Controls else if (OperatingSystem2.IsMacOS()) { ExtendClientAreaToDecorationsHint = true; - ExtendClientAreaTitleBarHeightHint = -1; + ExtendClientAreaTitleBarHeightHint = System.Application.UI.Views.Controls.TitleBar.DefaultHeight; ExtendClientAreaChromeHints = ExtendClientAreaChromeHints.PreferSystemChrome;