Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
fix text adaptation
Greedeks01b7281d4c21
diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml b/.Source/GTweak/Windows/LoadingWindow.xamlindex a29e8959..51988445 100644--- a/.Source/GTweak/Windows/LoadingWindow.xaml+++ b/.Source/GTweak/Windows/LoadingWindow.xaml@@ -58,7 +58,9 @@</Path></Grid>- <TextBlock x:Name="TextLoad" Text="{DynamicResource step1_load}" MaxHeight="30" MaxWidth="160" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" FontSize="9pt" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium" TextWrapping="Wrap" Margin="0,14,0,0"/>+ <Viewbox Stretch="Uniform" Width="150" Height="Auto" VerticalAlignment="Center" StretchDirection="DownOnly">+ <TextBlock x:Name="TextLoad" Text="{DynamicResource step1_load}" Foreground="{StaticResource Color_TetBlock_Inactivity}" FontFamily="{StaticResource Jura}" Height="auto" HorizontalAlignment="Center" TextAlignment="Center" FontStretch="Medium" TextWrapping="Wrap" Margin="1,14,1,1"/>+ </Viewbox></StackPanel></Grid>diff --git a/.Source/GTweak/Windows/MessageWindow.xaml b/.Source/GTweak/Windows/MessageWindow.xamlindex 0a7f01c0..7c8d1ee1 100644--- a/.Source/GTweak/Windows/MessageWindow.xaml+++ b/.Source/GTweak/Windows/MessageWindow.xaml@@ -29,12 +29,14 @@</Image><TextBlock Text="{DynamicResource title_message}" Margin="10,1,0,0" Foreground="{StaticResource Color_Highlighted}" Height="auto" Width="auto" FontFamily="{StaticResource Jura}" FontSize="19px" HorizontalAlignment="Left" TextAlignment="Center"/></StackPanel>- <TextBlock Foreground="{StaticResource Color_TetBlock_Inactivity}" Height="auto" Width="340" FontFamily="{StaticResource Jura}" FontSize="14px" TextWrapping="Wrap"- HorizontalAlignment="Center" TextAlignment="Left" FontStretch="Medium" Margin="0,10,0,0">+ <Viewbox Stretch="Uniform" Width="330" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Left" StretchDirection="DownOnly">+ <TextBlock Foreground="{StaticResource Color_TetBlock_Inactivity}" Height="auto" Width="340" FontFamily="{StaticResource Jura}" FontSize="14px" TextWrapping="Wrap"+ HorizontalAlignment="Center" TextAlignment="Left" FontStretch="Medium" Margin="0,10,0,0"><Run Text="{DynamicResource text0_message}"/><Run Text="{DynamicResource text1_message}" Foreground="{StaticResource Color_Accent}"/><Run Text="{DynamicResource text2_message}"/>- </TextBlock>+ </TextBlock>+ </Viewbox></StackPanel></Grid>@@ -59,7 +61,9 @@</Grid><Grid Grid.Row="2" VerticalAlignment="Bottom" Margin="0,0,20,10">- <TextBlock Text="{DynamicResource noty_message}" Foreground="{StaticResource Color_Inactive}" Height="auto" Width="auto" MaxWidth="350" FontFamily="{StaticResource Jura}" FontSize="12px" HorizontalAlignment="Left" TextAlignment="Center" Margin="20,8,0,0"/>+ <Viewbox Stretch="Uniform" Width="230" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Left" StretchDirection="DownOnly">+ <TextBlock Text="{DynamicResource noty_message}" Foreground="{StaticResource Color_Inactive}" Height="auto" Width="auto" MaxWidth="350" FontFamily="{StaticResource Jura}" FontSize="12px" HorizontalAlignment="Left" TextAlignment="Center" Margin="20,0,0,0"/>+ </Viewbox><Button x:Name="BtnAccept" Content="{DynamicResource button_message}" Style="{StaticResource BtnDefault}" HorizontalAlignment="Right" VerticalAlignment="Top" Width="110" Height="30" Cursor="Hand" PreviewMouseDown="BtnAccept_PreviewMouseDown"/></Grid></Grid>diff --git a/.Source/GTweak/Windows/RebootWindow.xaml b/.Source/GTweak/Windows/RebootWindow.xamlindex 0d854c8f..36561ce0 100644--- a/.Source/GTweak/Windows/RebootWindow.xaml+++ b/.Source/GTweak/Windows/RebootWindow.xaml@@ -6,25 +6,30 @@xmlns:local="clr-namespace:GTweak.Windows"mc:Ignorable="d"xmlns:xrpb="http://XamlRadialProgressBar/DotNet"- Title="GTweak" WindowStyle="None" Height="180" Width="180" ResizeMode="NoResize"- Background="Transparent" AllowsTransparency="True" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True" UseLayoutRounding="True"- IsTabStop="False" Opacity="0.98" Topmost="True" ShowInTaskbar="False" Loaded="Window_Loaded">- <Grid>+ Title="GTweak"+ WindowStyle="None" ResizeMode="NoResize" Background="Transparent" AllowsTransparency="True" WindowStartupLocation="CenterScreen"+ SnapsToDevicePixels="True" UseLayoutRounding="True" IsTabStop="False" Opacity="0.98"+ Topmost="True" ShowInTaskbar="False" Loaded="Window_Loaded" SizeToContent="WidthAndHeight">++ <Grid Margin="20"><Ellipse Height="140" Width="140" Fill="{StaticResource Color_Background_Dark}" StrokeThickness="6.6" VerticalAlignment="Center" HorizontalAlignment="Center"/>+<Ellipse Height="154" Width="154" Stroke="{StaticResource Color_Background_RadialProgressBar}" StrokeThickness="5" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.5"/>-- <xrpb:RadialProgressBar x:Name="RestartProgress" Value="20" Maximum="100" Width="165" Height="165" ArcWidth="5.5" VerticalAlignment="Center" HorizontalAlignment="Center">- <xrpb:RadialProgressBar.Foreground>- <LinearGradientBrush EndPoint="0,0.3" StartPoint="0.9,0" ColorInterpolationMode="ScRgbLinearInterpolation" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">- <GradientStop Color="{StaticResource Color_Border_Gradient_2}" Offset="0.7"/>- <GradientStop Color="{StaticResource Color_Border_Gradient_1}" Offset="0.4"/>- </LinearGradientBrush>- </xrpb:RadialProgressBar.Foreground>- <xrpb:RadialProgressBar.Effect>- <DropShadowEffect BlurRadius="15" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}"/>- </xrpb:RadialProgressBar.Effect>- </xrpb:RadialProgressBar>- <TextBlock Text="{DynamicResource title_reboot}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource Color_TetBlock_Inactivity}" Height="auto" Width="135" TextAlignment="Center" Style="{StaticResource Text}"/>- </Grid>+ <xrpb:RadialProgressBar x:Name="RestartProgress" Value="20" Maximum="100" Width="165" Height="165" ArcWidth="5.5" VerticalAlignment="Center" HorizontalAlignment="Center">+ <xrpb:RadialProgressBar.Foreground>+ <LinearGradientBrush EndPoint="0,0.3" StartPoint="0.9,0" ColorInterpolationMode="ScRgbLinearInterpolation" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">+ <GradientStop Color="{StaticResource Color_Border_Gradient_2}" Offset="0.7"/>+ <GradientStop Color="{StaticResource Color_Border_Gradient_1}" Offset="0.4"/>+ </LinearGradientBrush>+ </xrpb:RadialProgressBar.Foreground>+ <xrpb:RadialProgressBar.Effect>+ <DropShadowEffect BlurRadius="15" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}"/>+ </xrpb:RadialProgressBar.Effect>+ </xrpb:RadialProgressBar>++ <Viewbox Stretch="Uniform" Width="110" Height="Auto" VerticalAlignment="Center" StretchDirection="DownOnly">+ <TextBlock x:Name="RebootText" Padding="5" Text="{DynamicResource title_reboot}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource Color_TetBlock_Inactivity}" TextAlignment="Center" TextWrapping="Wrap" Height="auto" Style="{StaticResource Text}"/>+ </Viewbox>+ </Grid></Window>diff --git a/.Source/GTweak/Windows/RebootWindow.xaml.cs b/.Source/GTweak/Windows/RebootWindow.xaml.csindex 3c216e61..6408c5b7 100644--- a/.Source/GTweak/Windows/RebootWindow.xaml.cs+++ b/.Source/GTweak/Windows/RebootWindow.xaml.cs@@ -12,6 +12,10 @@ namespace GTweak.WindowsInitializeComponent();}- private void Window_Loaded(object sender, RoutedEventArgs e) => RestartProgress.BeginAnimation(ProgressBar.ValueProperty, FactoryAnimation.CreateIn(0, 100, 1.5, () => { SettingsEngine.SelfReboot(); }));+ private void Window_Loaded(object sender, RoutedEventArgs e)+ {+ RebootText.Text = RebootText.Text.Replace(" ", "\n");+ RestartProgress.BeginAnimation(ProgressBar.ValueProperty, FactoryAnimation.CreateIn(0, 100, 1.5, () => { SettingsEngine.SelfReboot(); }));+ }}}