From 14d314e0a2eeb1f2a4183f686edb977beddb151c Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sat, 7 Feb 2026 15:29:15 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettingsViews/UpdateCenterPanel.xaml | 45 +++++++++++++------ .../SettingsViews/UpdateCenterPanel.xaml.cs | 12 +++-- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml index f6bf92f6..b8d1cff9 100644 --- a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml +++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml @@ -66,12 +66,12 @@ - + - - - - - + diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs index b55340d5..39764890 100644 --- a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs +++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; -using MessageBox = System.Windows.MessageBox; +using MessageBox = iNKORE.UI.WPF.Modern.Controls.MessageBox; using static Ink_Canvas.Helpers.AutoUpdateHelper; namespace Ink_Canvas.Windows.SettingsViews @@ -970,6 +970,12 @@ namespace Ink_Canvas.Windows.SettingsViews { ThemeHelper.ApplyThemeToControl(this); + if (UpdateAvailableBorder != null) + { + UpdateAvailableBorder.Background = ThemeHelper.GetBackgroundPrimaryBrush(); + UpdateAvailableBorder.BorderBrush = ThemeHelper.GetBorderPrimaryBrush(); + } + if (CheckUpdateButton != null) { CheckUpdateButton.Background = ThemeHelper.GetButtonBackgroundBrush(); @@ -979,7 +985,7 @@ namespace Ink_Canvas.Windows.SettingsViews if (UpdateNowButton != null) { - UpdateNowButton.Background = new SolidColorBrush(Color.FromRgb(0, 120, 212)); + UpdateNowButton.Background = new SolidColorBrush(Color.FromRgb(37, 99, 235)); UpdateNowButton.Foreground = Brushes.White; } @@ -993,7 +999,7 @@ namespace Ink_Canvas.Windows.SettingsViews if (SkipVersionButton != null) { SkipVersionButton.Background = Brushes.Transparent; - SkipVersionButton.Foreground = new SolidColorBrush(Color.FromRgb(0, 120, 212)); + SkipVersionButton.Foreground = ThemeHelper.GetTextSecondaryBrush(); SkipVersionButton.BorderThickness = new Thickness(0); }