Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 4ccf373

Browse files
committed
detail to last fix
1 parent 124c32a commit 4ccf373

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

UI/MainWindow/MainWindow.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace SPCode.UI
2929
public partial class MainWindow
3030
{
3131
#region Variables
32+
private readonly SolidColorBrush BlendOverEffectColorBrush;
3233
private readonly Storyboard BlendOverEffect;
3334
private readonly Storyboard DimmMainWindowEffect;
3435
private readonly Storyboard RestoreMainWindowEffect;
@@ -121,15 +122,20 @@ public MainWindow(SplashScreen sc)
121122
OBDirList.SelectedIndex = 0;
122123

123124
// Set some visual effects
125+
BlendOverEffectColorBrush = (SolidColorBrush)FindResource("AccentColorBrush4");
124126
MetroDialogOptions.AnimateHide = MetroDialogOptions.AnimateShow = false;
125127
BlendOverEffect = (Storyboard)Resources["BlendOverEffect"];
128+
BlendOverEffect.Completed += delegate
129+
{
130+
BlendEffectPlane.Fill = BlendOverEffectColorBrush;
131+
};
126132
EnableServerAnim = (Storyboard)Resources["EnableServerAnim"];
127133
DisableServerAnim = (Storyboard)Resources["DisableServerAnim"];
128134
DimmMainWindowEffect = (Storyboard)Resources["DimmMainWindow"];
129135
RestoreMainWindowEffect = (Storyboard)Resources["RestoreMainWindow"];
130136
RestoreMainWindowEffect.Completed += delegate
131137
{
132-
BlendEffectPlane.Fill = (SolidColorBrush)FindResource("AccentColorBrush4");
138+
BlendEffectPlane.Fill = BlendOverEffectColorBrush;
133139
};
134140

135141
// Start OB

0 commit comments

Comments
 (0)