From 7e9cc8b2db65cb8407cb744f89c3f370580ce869 Mon Sep 17 00:00:00 2001 From: clover_yan <56215525+clover-yan@users.noreply.github.com> Date: Thu, 11 May 2023 20:22:14 +0800 Subject: [PATCH] Final version --- DateCountdown/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DateCountdown/MainWindow.xaml.cs b/DateCountdown/MainWindow.xaml.cs index 2c8b382..8972194 100644 --- a/DateCountdown/MainWindow.xaml.cs +++ b/DateCountdown/MainWindow.xaml.cs @@ -164,8 +164,8 @@ private void Window_Loaded(object sender, RoutedEventArgs e) if (App.StartArgs.Contains("-b")) { - TextBlockTitle.Effect = AfterText.Effect = TextBlockCopyright.Effect = new DropShadowEffect { Color = light ? Color.FromArgb((alpha ? 128 : 255), 0, 0, 0) : Color.FromArgb((alpha ? 128 : 255), 255, 255, 255), Direction = 320, ShadowDepth = 0, BlurRadius = 5 }; - TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Color.FromArgb((alpha ? 128 : 255), 255, 255, 255) : Color.FromArgb((alpha ? 128 : 255), 0, 0, 0), Direction = 320, ShadowDepth = 0, BlurRadius = 5 }; + TextBlockTitle.Effect = AfterText.Effect = TextBlockCopyright.Effect = new DropShadowEffect { Color = light ? Colors.Black : Colors.White, Direction = 320, ShadowDepth = 0, BlurRadius = alpha ? 10 : 5 }; + TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Colors.White : Colors.Black, Direction = 320, ShadowDepth = 0, BlurRadius = alpha ? 10 : 5 }; } if (App.StartArgs.Contains("-p"))