Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-edit view
Greedeks9afa2a4306c1
diff --git a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml b/.Source/GTweak/Assets/UserControl/ToggleButton.xamlindex 38f6e44f..b1ecb8f4 100644--- a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml+++ b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml@@ -5,13 +5,13 @@xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:local="clr-namespace:GTweak.Assets.UserControl"mc:Ignorable="d"- d:Height="177" d:Width="288" SnapsToDevicePixels="True" UseLayoutRounding="True">+ d:Height="auto" d:Width="auto" SnapsToDevicePixels="True" UseLayoutRounding="True"><Grid Width="Auto"><StackPanel Orientation="Horizontal"><Viewbox Margin="0" KeyboardNavigation.IsTabStop="False" MouseLeftButtonDown="Toggle_MouseLeftButtonDown"><Grid Height="60" VerticalAlignment="Center" Width="Auto"><Rectangle x:Name="Back" Fill="{StaticResource Color_ToggleButtonBackground}" Cursor="Hand" HorizontalAlignment="Left" Height="56.5" VerticalAlignment="Top" Width="96.5" Margin="2,2,0,0" RadiusY="29" RadiusX="29" KeyboardNavigation.IsTabStop="False" />- <Ellipse x:Name="Dot" Fill="White" Cursor="Hand" HorizontalAlignment="Center" Height="50" VerticalAlignment="Center" Width="50" StrokeThickness="1" KeyboardNavigation.IsTabStop="False">+ <Ellipse x:Name="Dot" Fill="White" Cursor="Hand" HorizontalAlignment="Left" Height="50" VerticalAlignment="Center" Width="50" StrokeThickness="1" KeyboardNavigation.IsTabStop="False" RenderTransformOrigin="1.31,0.51" Margin="5,0,0,0"><Ellipse.Effect><DropShadowEffect ShadowDepth="1" Opacity="0.5"/></Ellipse.Effect>@@ -21,7 +21,7 @@</Ellipse></Grid></Viewbox>- <TextBlock x:Name="ToggleText" Text="Текст" Margin="10,2,0,0" HorizontalAlignment="Left" Width="Auto" Style="{StaticResource Text_In}"/>+ <TextBlock x:Name="ToggleText" Text="TextTglButton" Margin="10,2,0,0" HorizontalAlignment="Left" Width="Auto" Style="{StaticResource Text_In}"/></StackPanel></Grid></UserControl>diff --git a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.csindex e0cc7b77..5128052d 100644--- a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs+++ b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs@@ -16,7 +16,7 @@ namespace GTweak.Assets.UserControl/// </summary>internal event EventHandler ChangedState;- private readonly Thickness _leftSide = new Thickness(-37, 0, 0, 0), _rightSide = new Thickness(0, 0, -40, 0);+ private readonly Thickness _leftSide = new Thickness(5, 0, 0, 0), _rightSide = new Thickness(45, 0, 0, 0);private readonly LinearGradientBrush brushOffColor = new LinearGradientBrush(), brushOnColor = new LinearGradientBrush();private bool _state = false;