From 77ac6f88ca90226d4a7df0aa6de44e3d10475549 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Mon, 6 Oct 2025 17:28:32 +0800 Subject: [PATCH] =?UTF-8?q?improve:=E8=AE=A1=E6=97=B6=E5=99=A8UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ink Canvas/Windows/SeewoStyleTimerWindow.xaml | 4 ++-- Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml index d789f45b..6be27988 100644 --- a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml +++ b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml @@ -412,7 +412,7 @@ Click="CommonTab_Click" Cursor="Hand" HorizontalAlignment="Left"> - diff --git a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs index 819486d6..32077126 100644 --- a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs +++ b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs @@ -566,6 +566,12 @@ namespace Ink_Canvas CommonTimersGrid.Visibility = Visibility.Visible; RecentTimersGrid.Visibility = Visibility.Collapsed; + // 更新字体粗细 + var commonText = this.FindName("CommonTabText") as TextBlock; + var recentText = this.FindName("RecentTabText") as TextBlock; + if (commonText != null) commonText.FontWeight = FontWeights.Bold; + if (recentText != null) recentText.FontWeight = FontWeights.Normal; + // 移动指示器到左侧 var indicator = this.FindName("SegmentedIndicator") as Border; if (indicator != null) @@ -582,6 +588,12 @@ namespace Ink_Canvas CommonTimersGrid.Visibility = Visibility.Collapsed; RecentTimersGrid.Visibility = Visibility.Visible; + // 更新字体粗细 + var commonText = this.FindName("CommonTabText") as TextBlock; + var recentText = this.FindName("RecentTabText") as TextBlock; + if (commonText != null) commonText.FontWeight = FontWeights.Normal; + if (recentText != null) recentText.FontWeight = FontWeights.Bold; + // 移动指示器到右侧 var indicator = this.FindName("SegmentedIndicator") as Border; if (indicator != null)