Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-edit glow effect & refactoring
Greedeks76b2d17c50c6
diff --git a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml b/.Source/GTweak/Assets/UserControl/ProggressRing.xamlindex 17cc6054..de59e504 100644--- a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml+++ b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml@@ -15,7 +15,7 @@</Path><Path x:Name="Main" Stroke="{StaticResource Color_Accent}" StrokeThickness="6"><Path.Effect>- <DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity="0.6" Color="{StaticResource Color_Shadow}" />+ <DropShadowEffect BlurRadius="15" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}"/></Path.Effect><Path.Data><PathGeometry>diff --git a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.cs b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.csindex 2fe8816c..8d668424 100644--- a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.cs+++ b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.cs@@ -4,7 +4,7 @@ namespace GTweak.Assets.UserControl{public partial class ProggressRing{- internal Brush ChangeBackground { get => Back.Stroke; set { Back.Stroke = value; } }+ internal Brush ChangeBackground { get => Back.Stroke; set { Back.Stroke = value; } }internal double ChangeStrokeThickness { get => Back.StrokeThickness; set { Main.StrokeThickness = Back.StrokeThickness = value; } }public ProggressRing(){diff --git a/.Source/GTweak/Utilities/BlockRunTweaker.cs b/.Source/GTweak/Utilities/BlockRunTweaker.csindex 84629238..391bb9a2 100644--- a/.Source/GTweak/Utilities/BlockRunTweaker.cs+++ b/.Source/GTweak/Utilities/BlockRunTweaker.cs@@ -22,7 +22,7 @@ namespace GTweak.Utilities{Process.Start(new ProcessStartInfo(){- Arguments = @"/c timeout /t 10 && del %userprofile%\AppData\Local\CrashDumps\*"+AppDomain.CurrentDomain.FriendlyName+"*",+ Arguments = @"/c timeout /t 10 && del %userprofile%\AppData\Local\CrashDumps\*" + Settings.currentName + "*",WindowStyle = ProcessWindowStyle.Hidden,CreateNoWindow = true,FileName = "cmd.exe"diff --git a/.Source/GTweak/Utilities/Settings.cs b/.Source/GTweak/Utilities/Settings.csindex 26cda952..77ff7b14 100644--- a/.Source/GTweak/Utilities/Settings.cs+++ b/.Source/GTweak/Utilities/Settings.cs@@ -30,6 +30,8 @@ namespace GTweak.Utilitiesinternal static int PID = 0;internal static string currentRelease = (Assembly.GetEntryAssembly() ?? throw new InvalidOperationException()).GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion.Split(' ').Last().Trim();+ internal static readonly string currentName = AppDomain.CurrentDomain.FriendlyName;+ internal static readonly string currentLocation = Assembly.GetExecutingAssembly().Location;internal static bool IsViewNotification { get => _isViewNotification; set => _isViewNotification = value; }internal static bool IsSoundNotification { get => _isSoundNotification; set => _isSoundNotification = value; }@@ -184,11 +186,10 @@ namespace GTweak.UtilitiesRegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\Microsoft\Tracing\GTweak_RASAPI32");RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\Microsoft\Tracing\GTweak_RASMANCS");- Application.Current.Shutdown();Process.Start(new ProcessStartInfo(){- Arguments = "/c choice /c y /n /d y /t 3 & del \"" + (new FileInfo(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath)).Name + "\" & " +- "rd /s /q " + PathTempFiles + @"& rd /s /q " + Environment.SystemDirectory + @"\config\systemprofile\AppData\Local\GTweak",+ Arguments = $"/c taskkill /f /im \"{currentName}\" & choice /c y /n /d y /t 3 & del \"" + new FileInfo(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath).Name + "\" & " ++ "rd /s /q " + PathTempFiles + " & rd /s /q " + Environment.SystemDirectory + @"\config\systemprofile\AppData\Local\GTweak",WindowStyle = ProcessWindowStyle.Hidden,CreateNoWindow = true,FileName = "cmd.exe"@@ -201,12 +202,11 @@ namespace GTweak.Utilities{Process.Start(new ProcessStartInfo(){- Arguments = "/c choice /c y /n /d y /t 1 & start \"\" \"" + Assembly.GetEntryAssembly().Location + "\"",+ Arguments = $"/c taskkill /f /im \"{currentName}\" & choice /c y /n /d y /t 1 & start \"\" \"" + currentLocation + "\"",WindowStyle = ProcessWindowStyle.Hidden,CreateNoWindow = true,FileName = "cmd.exe"});- Process.GetCurrentProcess().Kill();}}}diff --git a/.Source/GTweak/Windows/RebootWindow.xaml b/.Source/GTweak/Windows/RebootWindow.xamlindex 5ff2a004..697226b3 100644--- a/.Source/GTweak/Windows/RebootWindow.xaml+++ b/.Source/GTweak/Windows/RebootWindow.xaml@@ -22,7 +22,7 @@</LinearGradientBrush></xrpb:RadialProgressBar.Foreground><xrpb:RadialProgressBar.Effect>- <DropShadowEffect BlurRadius="30" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}"/>+ <DropShadowEffect BlurRadius="15" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}"/></xrpb:RadialProgressBar.Effect></xrpb:RadialProgressBar>