mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
fix<Launcher>: fix highdpi screen display issue when launcher is maximized
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<Style TargetType="{x:Type Border}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Maximized">
|
||||
<Setter Property="Margin" Value="6"/>
|
||||
<Setter Property="Margin" Value="{x:Static local:Launcher.MAXIMIZE_MARGIN}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Normal">
|
||||
<Setter Property="Margin" Value="0"/>
|
||||
|
||||
@@ -16,6 +16,8 @@ namespace SourceGit.UI {
|
||||
/// Main window for this app.
|
||||
/// </summary>
|
||||
public partial class Launcher : Window {
|
||||
public static readonly Thickness MAXIMIZE_MARGIN = new Thickness(
|
||||
(SystemParameters.MaximizedPrimaryScreenWidth - SystemParameters.WorkArea.Width) / 2);
|
||||
|
||||
/// <summary>
|
||||
/// Tab data.
|
||||
|
||||
Reference in New Issue
Block a user