From 511f65b5e5da4dcc186bc4bbeeaa9d38ccfd97da Mon Sep 17 00:00:00 2001 From: clover-yan Date: Sat, 3 Jun 2023 16:53:36 +0800 Subject: [PATCH] Appearance --- 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 8b99477..3deeb48 100644 --- a/DateCountdown/MainWindow.xaml.cs +++ b/DateCountdown/MainWindow.xaml.cs @@ -248,8 +248,8 @@ private void Window_Loaded(object sender, RoutedEventArgs e) if (App.StartArgs.Contains("-b")) { - TextBlockTitle.Effect = AfterText.Effect = TextBlockCopyright.Effect = new DropShadowEffect { Color = light ? Colors.Black : Colors.White, Direction = 320, ShadowDepth = 0, BlurRadius = 5 }; - TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Colors.White : Colors.Black, 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 = 5, Opacity = alpha ? 0.5 : 1 }; + TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Colors.White : Colors.Black, Direction = 320, ShadowDepth = 0, BlurRadius = 5, Opacity = alpha ? 0.5 : 1 }; } // if (App.StartArgs.Contains("-jf"))