Skip to content

Portable Tool for an Ideal Windows Setup

correction of the text size during adaptation

Greedeks3965a805cd16
diff --git a/.Source/GTweak/Assets/UserControl/Comment.xaml b/.Source/GTweak/Assets/UserControl/Comment.xaml
index eb522897..61fea899 100644
--- a/.Source/GTweak/Assets/UserControl/Comment.xaml
+++ b/.Source/GTweak/Assets/UserControl/Comment.xaml
@@ -8,8 +8,10 @@
d:DesignHeight="90" d:DesignWidth="1100" Loaded="Comment_Loaded">
<Viewbox>
<Grid Width="1100" Height="90">
- <TextBlock x:Name="FunctionDescription" Style="{StaticResource Description}" Text="{Binding DefaultText, RelativeSource={RelativeSource AncestorType=local:Comment}}"/>
-
+ <Viewbox MaxWidth="1000" MaxHeight="90" Width="1000" Height="90" StretchDirection="DownOnly" VerticalAlignment="Top" HorizontalAlignment="Center">
+ <TextBlock x:Name="FunctionDescription" Style="{StaticResource Description}" Text="{Binding DefaultText, RelativeSource={RelativeSource AncestorType=local:Comment}}"/>
+ </Viewbox>
+
<!-- Left Borders -->
<Border Margin="320,0,0,0" Background="{StaticResource Color_ButtonOver}" Height="1" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="0,15,15,0" Opacity="0">
<Border.Triggers>
diff --git a/.Source/GTweak/Windows/ImportWindow.xaml b/.Source/GTweak/Windows/ImportWindow.xaml
index db9a4940..fe227ac4 100644
--- a/.Source/GTweak/Windows/ImportWindow.xaml
+++ b/.Source/GTweak/Windows/ImportWindow.xaml
@@ -53,10 +53,12 @@
</TextBlock>
</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">
+ <Viewbox Stretch="Uniform" MaxWidth="350" VerticalAlignment="Center" HorizontalAlignment="Left" StretchDirection="DownOnly">
+ <TextBlock Foreground="{StaticResource Color_Inactive}" Height="auto" Width="auto" MaxWidth="350" TextWrapping="Wrap" FontFamily="{StaticResource Jura}" FontSize="12px" HorizontalAlignment="Left" TextAlignment="Center" Margin="0,12,0,0">
<Run Text="{DynamicResource file_import}"/>
<Run Text="“"/><Run x:Name="ImportedFile" Text="The imported file" Foreground="{StaticResource Color_Accent}"/><Run Text="”"/>
- </TextBlock>
+ </TextBlock>
+ </Viewbox>
</StackPanel>
</Grid>
</Grid>
diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml b/.Source/GTweak/Windows/LoadingWindow.xaml
index 909162e3..76bc12e1 100644
--- a/.Source/GTweak/Windows/LoadingWindow.xaml
+++ b/.Source/GTweak/Windows/LoadingWindow.xaml
@@ -59,8 +59,8 @@
</Path>
</Grid>
- <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 Stretch="Uniform" MaxWidth="161" VerticalAlignment="Center" StretchDirection="DownOnly">
+ <TextBlock x:Name="TextLoad" MaxWidth="160" 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.xaml
index 7432ec8a..aafec84e 100644
--- a/.Source/GTweak/Windows/MessageWindow.xaml
+++ b/.Source/GTweak/Windows/MessageWindow.xaml
@@ -62,7 +62,7 @@
</Grid>
<Grid Grid.Row="2" VerticalAlignment="Bottom" Margin="0,0,20,10">
- <Viewbox Stretch="Uniform" Width="230" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Left" StretchDirection="DownOnly">
+ <Viewbox Stretch="Uniform" MaxWidth="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"/>
diff --git a/.Source/GTweak/Windows/RebootWindow.xaml b/.Source/GTweak/Windows/RebootWindow.xaml
index 36561ce0..2829639f 100644
--- a/.Source/GTweak/Windows/RebootWindow.xaml
+++ b/.Source/GTweak/Windows/RebootWindow.xaml
@@ -28,7 +28,7 @@
</xrpb:RadialProgressBar.Effect>
</xrpb:RadialProgressBar>
- <Viewbox Stretch="Uniform" Width="110" Height="Auto" VerticalAlignment="Center" StretchDirection="DownOnly">
+ <Viewbox Stretch="Uniform" MaxWidth="135" 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>