Skip to content

Portable Tool for an Ideal Windows Setup

-fixed click button & ed anim

Greedeksbb37991fdbcc
diff --git a/.Source/GTweak/View/InformationSystemView.xaml.cs b/.Source/GTweak/View/InformationSystemView.xaml.cs
index c94049a5..a29bfc51 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml.cs
+++ b/.Source/GTweak/View/InformationSystemView.xaml.cs
@@ -101,7 +101,7 @@ namespace GTweak.View
Duration = TimeSpan.FromSeconds(3),
EasingFunction = new QuadraticEase(),
};
- doubleAnim.Completed += (s, _) => { PopupCopy.IsOpen = false; };
+ doubleAnim.Completed += delegate { PopupCopy.IsOpen = false; };
Timeline.SetDesiredFrameRate(doubleAnim, 400);
CopyTextToastBody.BeginAnimation(ContextMenu.OpacityProperty, doubleAnim);
@@ -110,8 +110,8 @@ namespace GTweak.View
From = -20,
To = -50,
SpeedRatio = 8,
+ EasingFunction = new QuadraticEase(),
Duration = TimeSpan.FromSeconds(3),
- EasingFunction = new PowerEase(),
};
Timeline.SetDesiredFrameRate(doubleAnim, 400);
PopupCopy.BeginAnimation(Popup.VerticalOffsetProperty, doubleAnim);
@@ -165,7 +165,7 @@ namespace GTweak.View
{
From = CPULoad.Value,
To = SystemData.MonitoringSystem.CpuUsage,
- EasingFunction = new QuadraticEase(),
+ EasingFunction = new PowerEase(),
Duration = TimeSpan.FromSeconds(0.2)
};
Timeline.SetDesiredFrameRate(doubleAnim, 400);
@@ -176,7 +176,7 @@ namespace GTweak.View
{
From = RAMLoad.Value,
To = new SystemData.MonitoringSystem().RamUsage,
- EasingFunction = new QuadraticEase(),
+ EasingFunction = new PowerEase(),
Duration = TimeSpan.FromSeconds(0.2)
};
Timeline.SetDesiredFrameRate(doubleAnim, 400);
diff --git a/.Source/GTweak/Windows/MainWindow.xaml.cs b/.Source/GTweak/Windows/MainWindow.xaml.cs
index cf28d385..982f2ce8 100644
--- a/.Source/GTweak/Windows/MainWindow.xaml.cs
+++ b/.Source/GTweak/Windows/MainWindow.xaml.cs
@@ -47,7 +47,7 @@ namespace GTweak
From = 0.0,
To = 360,
SpeedRatio = 3,
- EasingFunction = new QuadraticEase(),
+ EasingFunction = new PowerEase(),
Duration = TimeSpan.FromSeconds(2)
};
DoubleAnimation animation = new DoubleAnimation()
@@ -55,7 +55,7 @@ namespace GTweak
From = SettingsMenu.Width != 400 ? 0 : 400,
To = SettingsMenu.Width != 400 ? 400 : 0,
SpeedRatio = 6,
- EasingFunction = new QuadraticEase(),
+ EasingFunction = new PowerEase(),
Duration = TimeSpan.FromSeconds(2)
};
Timeline.SetDesiredFrameRate(animation, 400);
@@ -70,7 +70,7 @@ namespace GTweak
private void ButtonSettings_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
- if (e.LeftButton == MouseButtonState.Pressed & SettingsMenu.Width == 0 || SettingsMenu.Width == 400)
+ if (e.LeftButton == MouseButtonState.Pressed && (SettingsMenu.Width == 0 || SettingsMenu.Width == 400))
SettingsMenuAnimation();
}
diff --git a/.Source/GTweak/Windows/NotificationWindow.xaml.cs b/.Source/GTweak/Windows/NotificationWindow.xaml.cs
index f755163c..0f7f1547 100644
--- a/.Source/GTweak/Windows/NotificationWindow.xaml.cs
+++ b/.Source/GTweak/Windows/NotificationWindow.xaml.cs
@@ -35,8 +35,6 @@ namespace GTweak.Windows
}, Application.Current.Dispatcher);
timer.Start();
-
- _mediaPlayer.Open(new Uri(Settings.PathSound));
}
private void BtnExit_PreviewMouseDown(object sender, MouseButtonEventArgs e)
@@ -65,6 +63,7 @@ namespace GTweak.Windows
{
if (Settings.IsSoundNotification)
{
+ _mediaPlayer.Open(new Uri(Settings.PathSound));
_mediaPlayer.Volume = Settings.VolumeNotification / 100.0f;
_mediaPlayer.Play();
}
diff --git a/.Source/GTweak/Windows/WaitingWindow.xaml.cs b/.Source/GTweak/Windows/WaitingWindow.xaml.cs
index 18531e40..6f02db19 100644
--- a/.Source/GTweak/Windows/WaitingWindow.xaml.cs
+++ b/.Source/GTweak/Windows/WaitingWindow.xaml.cs
@@ -46,7 +46,7 @@ namespace GTweak.Windows
From = 0,
To = 0.5,
SpeedRatio = 2,
- EasingFunction = new QuadraticEase(),
+ EasingFunction = new PowerEase(),
Duration = TimeSpan.FromSeconds(0.3)
};
Timeline.SetDesiredFrameRate(doubleAnim, 400);