From e443e1657b40e2ebe7d6a5f5c92cde6840d06915 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 26 Mar 2024 15:18:34 +0800 Subject: [PATCH] style: increase all GridSplitter's size --- src/SourceGit/Views/CommitChanges.axaml | 8 ++++---- src/SourceGit/Views/FileHistories.axaml | 12 +++++++----- src/SourceGit/Views/Histories.axaml | 5 +++-- src/SourceGit/Views/Histories.axaml.cs | 4 ++++ src/SourceGit/Views/Repository.axaml | 13 ++++++++----- src/SourceGit/Views/RevisionCompare.axaml | 8 ++++---- src/SourceGit/Views/RevisionFiles.axaml | 8 ++++---- src/SourceGit/Views/StashesPage.axaml | 12 +++++++----- src/SourceGit/Views/WorkingCopy.axaml | 12 +++++++----- 9 files changed, 48 insertions(+), 34 deletions(-) diff --git a/src/SourceGit/Views/CommitChanges.axaml b/src/SourceGit/Views/CommitChanges.axaml index 48a0030c..3720590b 100644 --- a/src/SourceGit/Views/CommitChanges.axaml +++ b/src/SourceGit/Views/CommitChanges.axaml @@ -11,7 +11,7 @@ - + @@ -152,11 +152,11 @@ - + diff --git a/src/SourceGit/Views/FileHistories.axaml b/src/SourceGit/Views/FileHistories.axaml index 3613f665..37a4d69f 100644 --- a/src/SourceGit/Views/FileHistories.axaml +++ b/src/SourceGit/Views/FileHistories.axaml @@ -62,7 +62,7 @@ - + @@ -103,12 +103,14 @@ + MinWidth="1" + HorizontalAlignment="Stretch" VerticalAlignment="Stretch" + Background="Transparent" + BorderThickness="1,0,0,0" + BorderBrush="{DynamicResource Brush.Border2}"/> - + diff --git a/src/SourceGit/Views/Histories.axaml b/src/SourceGit/Views/Histories.axaml index 45e1b434..13fa7275 100644 --- a/src/SourceGit/Views/Histories.axaml +++ b/src/SourceGit/Views/Histories.axaml @@ -9,7 +9,7 @@ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="SourceGit.Views.Histories" x:DataType="vm:Histories"> - + Background="{DynamicResource Brush.Window}" + BorderBrush="{DynamicResource Brush.Border0}"/> diff --git a/src/SourceGit/Views/Histories.axaml.cs b/src/SourceGit/Views/Histories.axaml.cs index 7e457006..5822f17a 100644 --- a/src/SourceGit/Views/Histories.axaml.cs +++ b/src/SourceGit/Views/Histories.axaml.cs @@ -44,6 +44,8 @@ namespace SourceGit.Views child.SetValue(RowSpanProperty, rowSpan); child.SetValue(ColumnProperty, i); child.SetValue(ColumnSpanProperty, 1); + + if (child is GridSplitter splitter) splitter.BorderThickness = new Thickness(1, 0, 0, 0); } } else @@ -56,6 +58,8 @@ namespace SourceGit.Views child.SetValue(RowSpanProperty, 1); child.SetValue(ColumnProperty, 0); child.SetValue(ColumnSpanProperty, colSpan); + + if (child is GridSplitter splitter) splitter.BorderThickness = new Thickness(0, 1, 0, 0); } } } diff --git a/src/SourceGit/Views/Repository.axaml b/src/SourceGit/Views/Repository.axaml index aa7b8612..9759ba00 100644 --- a/src/SourceGit/Views/Repository.axaml +++ b/src/SourceGit/Views/Repository.axaml @@ -95,7 +95,7 @@ - + @@ -440,11 +440,14 @@ Fill="{DynamicResource Brush.FG2}" IsVisible="{Binding SearchedCommits.Count, Converter={x:Static c:IntConverters.IsZero}}"/> - + + + MinWidth="1" + HorizontalAlignment="Stretch" VerticalAlignment="Stretch" + Background="Transparent" + BorderThickness="0,0,1,0" + BorderBrush="{DynamicResource Brush.Border0}"/> diff --git a/src/SourceGit/Views/RevisionCompare.axaml b/src/SourceGit/Views/RevisionCompare.axaml index 83e0f776..ae81316a 100644 --- a/src/SourceGit/Views/RevisionCompare.axaml +++ b/src/SourceGit/Views/RevisionCompare.axaml @@ -50,7 +50,7 @@ - + @@ -191,11 +191,11 @@ - + diff --git a/src/SourceGit/Views/RevisionFiles.axaml b/src/SourceGit/Views/RevisionFiles.axaml index dd1a9826..a58bacc1 100644 --- a/src/SourceGit/Views/RevisionFiles.axaml +++ b/src/SourceGit/Views/RevisionFiles.axaml @@ -13,7 +13,7 @@ - + @@ -67,12 +67,12 @@ - + diff --git a/src/SourceGit/Views/StashesPage.axaml b/src/SourceGit/Views/StashesPage.axaml index 12d0f985..29b34b13 100644 --- a/src/SourceGit/Views/StashesPage.axaml +++ b/src/SourceGit/Views/StashesPage.axaml @@ -12,7 +12,7 @@ - + @@ -122,12 +122,14 @@ + MinWidth=".5" + HorizontalAlignment="Stretch" VerticalAlignment="Stretch" + Background="Transparent" + BorderThickness="1,0,0,0" + BorderBrush="{DynamicResource Brush.Border0}"/> - + diff --git a/src/SourceGit/Views/WorkingCopy.axaml b/src/SourceGit/Views/WorkingCopy.axaml index fdb76903..7d7c2ed2 100644 --- a/src/SourceGit/Views/WorkingCopy.axaml +++ b/src/SourceGit/Views/WorkingCopy.axaml @@ -12,7 +12,7 @@ - + @@ -292,12 +292,14 @@ + MinWidth="1" + HorizontalAlignment="Stretch" VerticalAlignment="Stretch" + Background="Transparent" + BorderThickness="1,0,0,0" + BorderBrush="{DynamicResource Brush.Border0}"/> - +