Skip to content

Commit

Permalink
no
Browse files Browse the repository at this point in the history
  • Loading branch information
clover-yan committed May 17, 2023
1 parent 87ecb93 commit f9880e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DateCountdown/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ private void DispatcherTimer_Tick(object sender, EventArgs e)
}
if (isFullScreen) {
if (IsForegroundFullScreen() || IsMaximized()) {
if ((transState += 0.01) > 3.14)
transState = -3.14;
if ((transState += 0.02) > 3)
transState = -3;
Foreground = new SolidColorBrush(light ? Colors.White : Colors.Black) { Opacity = (Math.Cos(transState) + 1.0) / (alpha ? 4.0 : 2.0) };
TextBlockDays.Foreground = new SolidColorBrush(((SolidColorBrush)TextBlockDays.Foreground).Color) { Opacity = (Math.Cos(transState) + 1.0) / (alpha ? 4.0 : 2.0) };
} else {
Expand Down Expand Up @@ -243,8 +243,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 = alpha ? 15 : 5 };
TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Colors.White : Colors.Black, Direction = 320, ShadowDepth = 0, BlurRadius = alpha ? 15 : 5 };
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 };
}

if (App.StartArgs.Contains("-p"))
Expand Down

0 comments on commit f9880e8

Please sign in to comment.