diff --git a/Helpers/Fading.cs b/Helpers/Fading.cs index 278b6d3..59b3bbe 100644 --- a/Helpers/Fading.cs +++ b/Helpers/Fading.cs @@ -92,7 +92,8 @@ namespace SystemTrayMenu.Helper opacity = 0; ChangeOpacity?.Invoke(this, opacity); } - else if (opacity < ShownMinus) + else if (Properties.Settings.Default.UseFading && + opacity < ShownMinus) { opacity += StepIn; ChangeOpacity?.Invoke(this, opacity); @@ -113,12 +114,14 @@ namespace SystemTrayMenu.Helper opacity = 0; ChangeOpacity?.Invoke(this, opacity); } - else if (opacity < TransparentMinus) + else if (Properties.Settings.Default.UseFading && + opacity < TransparentMinus) { opacity += StepIn; ChangeOpacity?.Invoke(this, opacity); } - else if (opacity > TransparentPlus) + else if (Properties.Settings.Default.UseFading && + opacity > TransparentPlus) { opacity -= StepOut; ChangeOpacity?.Invoke(this, opacity); @@ -131,7 +134,8 @@ namespace SystemTrayMenu.Helper break; case FadingState.Hide: - if (opacity > StepOut) + if (Properties.Settings.Default.UseFading && + opacity > StepOut) { opacity -= StepOut; ChangeOpacity?.Invoke(this, opacity); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 3b63a5b..5486613 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.3.3")] -[assembly: AssemblyFileVersion("1.2.3.3")] +[assembly: AssemblyVersion("1.2.3.4")] +[assembly: AssemblyFileVersion("1.2.3.4")] diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index e7249e5..85f771b 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -506,7 +506,23 @@ namespace SystemTrayMenu.Properties this["UseCustomLocation"] = value; } } - + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool UseFading + { + get + { + return ((bool)(this["UseFading"])); + } + set + { + this["UseFading"] = value; + } + } + [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] diff --git a/README.md b/README.md index 1dea63c..aae1822 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,6 @@ Sponsors - Thank you! * Stefan Mahrer * Ralf K. * [donaldaken](https://github.com/donaldaken) -* Marc S. +* Marc Speer * [Traditional_Tap3954](https://www.reddit.com/user/Traditional_Tap3954/) * Maximilian H. diff --git a/UserInterface/AppContextMenu.cs b/UserInterface/AppContextMenu.cs index edb00a3..c0db7fb 100644 --- a/UserInterface/AppContextMenu.cs +++ b/UserInterface/AppContextMenu.cs @@ -121,7 +121,7 @@ Sponsors - Thank you! * Stefan Mahrer * Ralf K. * donaldaken -* Marc S. +* Marc Speer * Traditional_Tap3954 * Maximilian H. ";