Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-progreess ring added in uc
Greedekse8e531768d8b
diff --git a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml b/.Source/GTweak/Assets/UserControl/ProggressRing.xamlnew file mode 100644index 00000000..dce6ab99--- /dev/null+++ b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml@@ -0,0 +1,49 @@+<UserControl x:Class="GTweak.Assets.UserControl.ProggressRing"+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"+ xmlns:local="clr-namespace:GTweak.Assets.UserControl"+ mc:Ignorable="d"+ d:DesignHeight="200" d:DesignWidth="200">+ <Viewbox>+ <Canvas Margin="50">+ <Path x:Name="Back" Stroke="{StaticResource Color_Background_RadialProgressBar}" StrokeThickness="6" Opacity="0.5">+ <Path.Data>+ <EllipseGeometry RadiusX="50" RadiusY="50"/>+ </Path.Data>+ </Path>+ <Path x:Name="Main" Stroke="{StaticResource Color_Accent}" StrokeThickness="6">+ <Path.Effect>+ <DropShadowEffect BlurRadius="10" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />+ </Path.Effect>+ <Path.Data>+ <PathGeometry>+ <PathFigure StartPoint="0,-50">+ <ArcSegment Point="42.5,-26.2" Size="50,50"+ IsLargeArc="False" SweepDirection="Clockwise"/>+ </PathFigure>+ <PathGeometry.Transform>+ <RotateTransform Angle="15"/>+ </PathGeometry.Transform>+ </PathGeometry>+ </Path.Data>+ <Path.Style>+ <Style>+ <Style.Triggers>+ <Trigger Property="Image.IsEnabled" Value="True">+ <Trigger.EnterActions>+ <BeginStoryboard>+ <Storyboard Timeline.DesiredFrameRate="400">+ <DoubleAnimation Storyboard.TargetProperty="Data.Transform.Angle" To="360" Duration="0:0:4" SpeedRatio="3" RepeatBehavior="Forever"/>+ </Storyboard>+ </BeginStoryboard>+ </Trigger.EnterActions>+ </Trigger>+ </Style.Triggers>+ </Style>+ </Path.Style>+ </Path>+ </Canvas>+ </Viewbox>+</UserControl>diff --git a/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.cs b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.csnew file mode 100644index 00000000..2fe8816c--- /dev/null+++ b/.Source/GTweak/Assets/UserControl/ProggressRing.xaml.cs@@ -0,0 +1,14 @@+using System.Windows.Media;++namespace GTweak.Assets.UserControl+{+ public partial class ProggressRing+ {+ internal Brush ChangeBackground { get => Back.Stroke; set { Back.Stroke = value; } }+ internal double ChangeStrokeThickness { get => Back.StrokeThickness; set { Main.StrokeThickness = Back.StrokeThickness = value; } }+ public ProggressRing()+ {+ InitializeComponent();+ }+ }+}diff --git a/.Source/GTweak/GTweak.csproj b/.Source/GTweak/GTweak.csprojindex bcd33956..35fd6c7a 100644--- a/.Source/GTweak/GTweak.csproj+++ b/.Source/GTweak/GTweak.csproj@@ -242,6 +242,9 @@<Generator>MSBuild:Compile</Generator><SubType>Designer</SubType></ApplicationDefinition>+ <Compile Include="Assets\UserControl\ProggressRing.xaml.cs">+ <DependentUpon>ProggressRing.xaml</DependentUpon>+ </Compile><Compile Include="Properties\AssemblyInfo.cs"><AutoGen>True</AutoGen><DesignTime>True</DesignTime>@@ -314,6 +317,10 @@<SubType>Designer</SubType><Generator>MSBuild:Compile</Generator></Page>+ <Page Include="Assets\UserControl\ProggressRing.xaml">+ <SubType>Designer</SubType>+ <Generator>MSBuild:Compile</Generator>+ </Page><Page Include="Assets\UserControl\ToggleButton.xaml"><SubType>Designer</SubType><Generator>MSBuild:Compile</Generator>diff --git a/.Source/GTweak/Windows/ImportWindow.xaml b/.Source/GTweak/Windows/ImportWindow.xamlindex 8a0c0574..34b9fff1 100644--- a/.Source/GTweak/Windows/ImportWindow.xaml+++ b/.Source/GTweak/Windows/ImportWindow.xaml@@ -3,6 +3,7 @@xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"+ xmlns:uc="clr-namespace:GTweak.Assets.UserControl"xmlns:local="clr-namespace:GTweak.Windows"mc:Ignorable="d"Title="GTweak" WindowStyle="None"@@ -34,39 +35,8 @@<TextBlock Text="{DynamicResource warning_win_import}" Foreground="{StaticResource Color_TetBlock_Inactivity}" Height="auto" Width="auto" MaxWidth="350" FontFamily="{StaticResource Jura}" FontSize="13px" HorizontalAlignment="Left" TextAlignment="Center" Margin="0,10,0,0"/><Border Margin="0,20,0,0" CornerRadius="5" Background="{StaticResource Color_Background_RadialProgressBar}" Height="30" Width="350" HorizontalAlignment="Left"><StackPanel Orientation="Horizontal">- <Grid Height="25" Width="25" HorizontalAlignment="Left" Margin="10,3,0,2">- <Path Stroke="{StaticResource Color_Background_Dark}" StrokeThickness="2" Opacity="0.5" Margin="12,12,-12,-12">- <Path.Data>- <EllipseGeometry RadiusX="12.5" RadiusY="12.5"/>- </Path.Data>- </Path>- <Path Stroke="{StaticResource Color_Accent}" StrokeThickness="2" Margin="12,12,-12,-12">- <Path.Effect>- <DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />- </Path.Effect>- <Path.Data>- <PathGeometry>- <PathFigure StartPoint="0,-12.5">- <ArcSegment Point="10.6,-6.55" Size="12.5,12.5"- IsLargeArc="False" SweepDirection="Clockwise"/>- </PathFigure>- <PathGeometry.Transform>- <RotateTransform/>- </PathGeometry.Transform>- </PathGeometry>- </Path.Data>- <Path.Triggers>- <EventTrigger RoutedEvent="Loaded">- <BeginStoryboard>- <Storyboard Timeline.DesiredFrameRate="400">- <DoubleAnimation Storyboard.TargetProperty="Data.Transform.Angle" To="360" Duration="0:0:4" SpeedRatio="3" RepeatBehavior="Forever"/>- </Storyboard>- </BeginStoryboard>- </EventTrigger>- </Path.Triggers>- </Path>- </Grid>- <TextBlock Text="{DynamicResource wait_win_import}" Foreground="{StaticResource Color_Highlighted}" Height="auto" Width="auto" FontFamily="{StaticResource Jura}" FontSize="13px" HorizontalAlignment="Left" TextAlignment="Center" Margin="10,5,0,0"/>+ <uc:ProggressRing ChangeBackground="{StaticResource Color_Background_Dark}" ChangeStrokeThickness="10" Width="25" Margin="10,0,0,0" />+ <TextBlock Text="{DynamicResource wait_win_import}" Foreground="{StaticResource Color_Highlighted}" Height="auto" Width="auto" FontFamily="{StaticResource Jura}" FontSize="13px" HorizontalAlignment="Left" TextAlignment="Center" Margin="10,5,0,0"/></StackPanel></Border><TextBlock Foreground="{StaticResource Color_Inactive}" Height="auto" Width="auto" MaxWidth="350" FontFamily="{StaticResource Jura}" FontSize="12px" HorizontalAlignment="Left" TextAlignment="Center" Margin="0,12,0,0">diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml b/.Source/GTweak/Windows/LoadingWindow.xamlindex 3f967870..96490a54 100644--- a/.Source/GTweak/Windows/LoadingWindow.xaml+++ b/.Source/GTweak/Windows/LoadingWindow.xaml@@ -4,90 +4,60 @@xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:vm="clr-namespace:GTweak.Core.ViewModel"+ xmlns:uc="clr-namespace:GTweak.Assets.UserControl"xmlns:local="clr-namespace:GTweak.Windows"mc:Ignorable="d"Title="GTweak" WindowStyle="None"- Height="240" Width="240"+ Height="260" Width="260"Background="Transparent" AllowsTransparency="True" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" SnapsToDevicePixels="True" UseLayoutRounding="True"IsTabStop="False" Opacity="0.98" ContentRendered="Window_ContentRendered" Closing="Window_Closing"><Window.DataContext><vm:MainViewModel/></Window.DataContext>- <Grid>- <Path Stroke="{StaticResource Color_Background_RadialProgressBar}" StrokeThickness="6" Margin="120,120,-120,-120" Opacity="0.5">- <Path.Data>- <EllipseGeometry RadiusX="105" RadiusY="105"/>- </Path.Data>- </Path>+ <Grid VerticalAlignment="Center" HorizontalAlignment="Center">+ <uc:ProggressRing ChangeStrokeThickness="3" Width="210" Margin="0,0,-0.5,0" />++ <Ellipse Height="200" Width="200" Fill="{StaticResource Color_Background}" StrokeThickness="6.6" VerticalAlignment="Center" HorizontalAlignment="Center"/>- <Path Stroke="{StaticResource Color_Accent}" StrokeThickness="6" Margin="120,120,-120,-120">- <Path.Effect>- <DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />- </Path.Effect>- <Path.Data>- <PathGeometry>- <PathFigure StartPoint="0,-105">- <ArcSegment Point="89.25,-55.02" Size="105,105"- IsLargeArc="False" SweepDirection="Clockwise"/>- </PathFigure>- <PathGeometry.Transform>- <RotateTransform/>- </PathGeometry.Transform>- </PathGeometry>- </Path.Data>- <Path.Triggers>- <EventTrigger RoutedEvent="Loaded">- <BeginStoryboard>- <Storyboard Timeline.DesiredFrameRate="400">- <DoubleAnimation Storyboard.TargetProperty="Data.Transform.Angle" To="360" Duration="0:0:4" SpeedRatio="3" RepeatBehavior="Forever"/>- </Storyboard>- </BeginStoryboard>- </EventTrigger>- </Path.Triggers>- </Path>+ <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,30,0,0">- <Grid VerticalAlignment="Center" HorizontalAlignment="Center">- <Ellipse Height="200" Width="200" Fill="{StaticResource Color_Background}" StrokeThickness="6.6" VerticalAlignment="Center" HorizontalAlignment="Center"/>+ <TextBlock x:Name="TextTittle" Text="{DynamicResource title0_load}" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" FontSize="9pt" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium">+ <TextBlock.Triggers>+ <EventTrigger RoutedEvent="TextBlock.Loaded">+ <BeginStoryboard>+ <Storyboard>+ <StringAnimationUsingKeyFrames Storyboard.TargetName="TextTittle" Storyboard.TargetProperty="(TextBlock.Text)" Duration="0:0:0:8" SpeedRatio="10" FillBehavior="HoldEnd" RepeatBehavior="Forever">+ <DiscreteStringKeyFrame Value="{DynamicResource title1_load}" KeyTime="0:0:0:1"/>+ <DiscreteStringKeyFrame Value="{DynamicResource title2_load}" KeyTime="0:0:0:2" />+ <DiscreteStringKeyFrame Value="{DynamicResource title3_load}" KeyTime="0:0:0:3" />+ </StringAnimationUsingKeyFrames>+ </Storyboard>+ </BeginStoryboard>+ </EventTrigger>+ </TextBlock.Triggers>+ </TextBlock>- <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,25,0,0">-- <TextBlock x:Name="TextTittle" Text="{DynamicResource title0_load}" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" FontSize="9pt" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium">- <TextBlock.Triggers>- <EventTrigger RoutedEvent="TextBlock.Loaded">- <BeginStoryboard>- <Storyboard>- <StringAnimationUsingKeyFrames Storyboard.TargetName="TextTittle" Storyboard.TargetProperty="(TextBlock.Text)" Duration="0:0:0:8" SpeedRatio="10" FillBehavior="HoldEnd" RepeatBehavior="Forever">- <DiscreteStringKeyFrame Value="{DynamicResource title1_load}" KeyTime="0:0:0:1"/>- <DiscreteStringKeyFrame Value="{DynamicResource title2_load}" KeyTime="0:0:0:2" />- <DiscreteStringKeyFrame Value="{DynamicResource title3_load}" KeyTime="0:0:0:3" />- </StringAnimationUsingKeyFrames>- </Storyboard>- </BeginStoryboard>- </EventTrigger>- </TextBlock.Triggers>- </TextBlock>-- <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="00,20,0,0">- <Border BorderBrush="{StaticResource Color_Accent}" CornerRadius="50" Width="75" Height="75" VerticalAlignment="Center" HorizontalAlignment="Center">- <Border CornerRadius="50">- <Border.Effect>- <DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />- </Border.Effect>- <Border.Background>- <ImageBrush x:Name="ProfileAvatar" ImageSource="{Binding DisplayProfileAvatar}" Stretch="Uniform"/>- </Border.Background>- </Border>+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="00,20,0,0">+ <Border BorderBrush="{StaticResource Color_Accent}" CornerRadius="50" Width="75" Height="75" VerticalAlignment="Center" HorizontalAlignment="Center">+ <Border CornerRadius="50">+ <Border.Effect>+ <DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />+ </Border.Effect>+ <Border.Background>+ <ImageBrush x:Name="ProfileAvatar" ImageSource="{Binding DisplayProfileAvatar}" Stretch="Uniform"/>+ </Border.Background></Border>- <Path Stroke="{StaticResource Color_Accent}" StrokeThickness="1" Stretch="Uniform">- <Path.Data>- <EllipseGeometry RadiusX="5" RadiusY="5"/>- </Path.Data>- </Path>- </Grid>-- <TextBlock x:Name="TextLoad" Text="{DynamicResource text0_load}" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" FontSize="9pt" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium" Margin="0,14,0,0"/>- </StackPanel>- </Grid>+ </Border>+ <Path Stroke="{StaticResource Color_Accent}" StrokeThickness="1" Stretch="Uniform">+ <Path.Data>+ <EllipseGeometry RadiusX="5" RadiusY="5"/>+ </Path.Data>+ </Path>+ </Grid>++ <TextBlock x:Name="TextLoad" Text="{DynamicResource text0_load}" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" FontSize="9pt" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium" Margin="0,14,0,0"/>+ </StackPanel></Grid>+</Window>diff --git a/.Source/GTweak/Windows/UpdateWindow.xaml b/.Source/GTweak/Windows/UpdateWindow.xamlindex df5c8b59..65223849 100644--- a/.Source/GTweak/Windows/UpdateWindow.xaml+++ b/.Source/GTweak/Windows/UpdateWindow.xaml@@ -119,6 +119,7 @@</StackPanel></StackPanel></Grid>+</Grid></Border>