Skip to content

Commit

Permalink
fix: Fixed misleading minimze to tray button
Browse files Browse the repository at this point in the history
The square stroke of the "Minimize to Tray" button has been shrinked
to make it look more like a tray icon than a window.

This avoids confusing this square with the similar square of the
"Maximize" button, which represents a window.
  • Loading branch information
trungnt2910 committed Sep 27, 2022
1 parent b615e48 commit bf3a5a4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions X410Launcher/UI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@
Height="16"
Focusable="False">
<Canvas.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="-1.0" />
<TranslateTransform X="{Binding Width, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Canvas}}}" />
</TransformGroup>
<ScaleTransform ScaleX="-1.0" CenterX="8" />
</Canvas.RenderTransform>
<Path Fill="{Binding ButtonsForeground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type wpfui:TitleBar}}}"
Data="M6.364 2.5a.5.5 0 0 1 .5-.5H13.5A1.5 1.5 0 0 1 15 3.5v10a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 2 13.5V6.864a.5.5 0 1 1 1 0V13.5a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-10a.5.5 0 0 0-.5-.5H6.864a.5.5 0 0 1-.5-.5z" />
Data="M6.364 2.5a.5.5 0 0 1 .5-.5H13.5A1.5 1.5 0 0 1 15 3.5v10a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 2 13.5V6.864a.5.5 0 1 1 1 0V13.5a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-10a.5.5 0 0 0-.5-.5H6.864a.5.5 0 0 1-.5-.5z" >
<Path.RenderTransform>
<ScaleTransform ScaleX="0.5" ScaleY="0.5" CenterX="16" CenterY="16" />
</Path.RenderTransform>
</Path>
<Path Fill="{Binding ButtonsForeground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type wpfui:TitleBar}}}"
Data="M11 10.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1 0-1h3.793L1.146 1.854a.5.5 0 1 1 .708-.708L10 9.293V5.5a.5.5 0 0 1 1 0v5z" />
</Canvas>
Expand Down

0 comments on commit bf3a5a4

Please sign in to comment.