Skip to content

Portable Tool for an Ideal Windows Setup

-fix Widnows 11 avatar display (white border created automatically by Windows)

Greedeks14e34ce3155a
diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml b/.Source/GTweak/Windows/LoadingWindow.xaml
index 1682ea8e..3f967870 100644
--- a/.Source/GTweak/Windows/LoadingWindow.xaml
+++ b/.Source/GTweak/Windows/LoadingWindow.xaml
@@ -67,17 +67,25 @@
</EventTrigger>
</TextBlock.Triggers>
</TextBlock>
-
- <Border BorderBrush="{StaticResource Color_Accent}" BorderThickness="1.2" CornerRadius="50" Width="75" Height="75" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,20,0,0">
- <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>
+
+ <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>
</Border>
- </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>
diff --git a/.Source/GTweak/Windows/MainWindow.xaml b/.Source/GTweak/Windows/MainWindow.xaml
index 9cfe6935..65e2b5f2 100644
--- a/.Source/GTweak/Windows/MainWindow.xaml
+++ b/.Source/GTweak/Windows/MainWindow.xaml
@@ -46,18 +46,25 @@
</Border>
<StackPanel Orientation="Horizontal" Width="Auto" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Border BorderBrush="{StaticResource Color_Accent}" BorderThickness="1" CornerRadius="50.5" Width="29" Height="29" HorizontalAlignment="Left" VerticalAlignment="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>
+ <Grid>
+ <Border BorderBrush="{StaticResource Color_Accent}" CornerRadius="50" Width="29" Height="29" HorizontalAlignment="Left" VerticalAlignment="Center">
+ <Border CornerRadius="50">
+ <Border.Effect>
+ <DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />
+ </Border.Effect>
+ <Border.Background>
+ <ImageBrush ImageSource="{Binding DisplayProfileAvatar}" Stretch="Uniform"/>
+ </Border.Background>
+ </Border>
</Border>
- </Border>
+ <Path Stroke="{StaticResource Color_Accent}" StrokeThickness="0.5" Stretch="Uniform">
+ <Path.Data>
+ <EllipseGeometry RadiusX="5" RadiusY="5"/>
+ </Path.Data>
+ </Path>
+ </Grid>
- <TextBlock x:Name="ProfileName" Width="Auto" Text="{Binding DisplayProfileName}" FontSize="17" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Color_Accent}" HorizontalAlignment="Right" VerticalAlignment="Center" KeyboardNavigation.IsTabStop="False" Margin="10,0,0,0">
+ <TextBlock Width="Auto" Text="{Binding DisplayProfileName}" FontSize="17" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Color_Accent}" HorizontalAlignment="Right" VerticalAlignment="Center" KeyboardNavigation.IsTabStop="False" Margin="10,0,0,0">
<TextBlock.Effect>
<DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" />
</TextBlock.Effect>