diff --git a/DateCountdown/MainWindow.xaml.cs b/DateCountdown/MainWindow.xaml.cs index 51582a0..28d6ad9 100644 --- a/DateCountdown/MainWindow.xaml.cs +++ b/DateCountdown/MainWindow.xaml.cs @@ -137,8 +137,8 @@ private void DispatcherTimer_Tick(object sender, EventArgs e) } if (isFullScreen) { if (IsForegroundFullScreen() || IsMaximized()) { - if ((transState += 0.02) > 3) - transState = -3; + if ((transState += 0.02) > 2.4) + transState = -2.4; 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 { @@ -167,7 +167,7 @@ private void Grid_MouseMove(object sender, System.Windows.Input.MouseEventArgs e private void Window_Loaded(object sender, RoutedEventArgs e) { - Top = 30; + Top = 32; Left = 0; Width = SystemParameters.WorkArea.Width; @@ -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 = 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.0 }; + TextBlockDays.Effect = TextBlockDaysDetails.Effect = new DropShadowEffect { Color = light ? Colors.White : Colors.Black, Direction = 320, ShadowDepth = 0, BlurRadius = 5, Opacity = alpha ? 0.5 : 1.0 }; } if (App.StartArgs.Contains("-p"))