From c76254f4f99e9149e5f20e69425c882edc1334b9 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Mon, 6 Oct 2025 17:28:52 +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 | 2 +- .../Windows/SeewoStyleTimerWindow.xaml.cs | 28 +++++++++++++++---- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml index 6be27988..bcf10227 100644 --- a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml +++ b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml @@ -423,7 +423,7 @@ Cursor="Hand" HorizontalAlignment="Right"> + Foreground="{DynamicResource SeewoTimerWindowButtonForeground}" Opacity="0.6"/> diff --git a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs index 32077126..2da6f031 100644 --- a/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs +++ b/Ink Canvas/Windows/SeewoStyleTimerWindow.xaml.cs @@ -566,11 +566,19 @@ 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; + if (commonText != null) + { + commonText.FontWeight = FontWeights.Bold; + commonText.Opacity = 1.0; + } + if (recentText != null) + { + recentText.FontWeight = FontWeights.Normal; + recentText.Opacity = 0.6; + } // 移动指示器到左侧 var indicator = this.FindName("SegmentedIndicator") as Border; @@ -588,11 +596,19 @@ 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; + if (commonText != null) + { + commonText.FontWeight = FontWeights.Normal; + commonText.Opacity = 0.6; + } + if (recentText != null) + { + recentText.FontWeight = FontWeights.Bold; + recentText.Opacity = 1.0; + } // 移动指示器到右侧 var indicator = this.FindName("SegmentedIndicator") as Border;