From 1a228bccaec141802efc3d77f2ca95f48b2d430d Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Fri, 29 May 2026 18:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FootwearTest/Views/MainWindow.axaml | 54 +++++++++++++++++--------- FootwearTest/Views/MainWindow.axaml.cs | 24 +++++++++++- 2 files changed, 59 insertions(+), 19 deletions(-) diff --git a/FootwearTest/Views/MainWindow.axaml b/FootwearTest/Views/MainWindow.axaml index 128f418..c1e821e 100644 --- a/FootwearTest/Views/MainWindow.axaml +++ b/FootwearTest/Views/MainWindow.axaml @@ -1,20 +1,38 @@ - + + + + + + + @@ -77,4 +95,4 @@ - + diff --git a/FootwearTest/Views/MainWindow.axaml.cs b/FootwearTest/Views/MainWindow.axaml.cs index 408c9ab..d11888d 100644 --- a/FootwearTest/Views/MainWindow.axaml.cs +++ b/FootwearTest/Views/MainWindow.axaml.cs @@ -1,12 +1,34 @@ using Avalonia.Controls; +using Avalonia.Controls.Primitives; +using Avalonia.Media; +using SukiUI.Controls; namespace FootwearTest.Views { - public partial class MainWindow : Window + public partial class MainWindow : SukiWindow { public MainWindow() { InitializeComponent(); } + + protected override void OnApplyTemplate(TemplateAppliedEventArgs e) + { + base.OnApplyTemplate(e); + + var titleBarBackground = e.NameScope.Find("PART_TitleBarBackground"); + if (titleBarBackground is not null) + { + titleBarBackground.IsOpaque = true; + titleBarBackground.IsAnimated = false; + titleBarBackground.BorderThickness = new Avalonia.Thickness(0); + } + + var dragArea = e.NameScope.Find("DragArea"); + if (dragArea is not null) + { + dragArea.Background = SolidColorBrush.Parse("#FDFEFF"); + } + } } }