mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
style: increase all GridSplitter's size
This commit is contained in:
parent
15ab457e74
commit
e443e1657b
9 changed files with 48 additions and 34 deletions
|
@ -11,7 +11,7 @@
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="4"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -152,11 +152,11 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="Transparent"/>
|
Background="Transparent"/>
|
||||||
|
|
||||||
<Grid Grid.Column="2" Margin="4,0,0,0">
|
<Grid Grid.Column="2">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
||||||
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
<Grid Grid.Row="1" Background="{DynamicResource Brush.Window}">
|
<Grid Grid.Row="1" Background="{DynamicResource Brush.Window}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="300" MinWidth="300" MaxWidth="600"/>
|
<ColumnDefinition Width="300" MinWidth="300" MaxWidth="600"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="4"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -103,12 +103,14 @@
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource Brush.Border0}"/>
|
Background="Transparent"
|
||||||
|
BorderThickness="1,0,0,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border2}"/>
|
||||||
|
|
||||||
<Grid Grid.Column="2">
|
<Grid Grid.Column="2">
|
||||||
<ContentControl Margin="4" Content="{Binding DiffContext}">
|
<ContentControl Margin="0,4,4,4" Content="{Binding DiffContext}">
|
||||||
<ContentControl.DataTemplates>
|
<ContentControl.DataTemplates>
|
||||||
<DataTemplate DataType="vm:DiffContext">
|
<DataTemplate DataType="vm:DiffContext">
|
||||||
<v:DiffView/>
|
<v:DiffView/>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SourceGit.Views.Histories"
|
x:Class="SourceGit.Views.Histories"
|
||||||
x:DataType="vm:Histories">
|
x:DataType="vm:Histories">
|
||||||
<v:LayoutableGrid RowDefinitions="*,1,*" ColumnDefinitions="*,1,*"
|
<v:LayoutableGrid RowDefinitions="*,3,*" ColumnDefinitions="*,3,*"
|
||||||
UseHorizontal="{Binding Source={x:Static vm:Preference.Instance}, Path=UseTwoColumnsLayoutInHistories}">
|
UseHorizontal="{Binding Source={x:Static vm:Preference.Instance}, Path=UseTwoColumnsLayoutInHistories}">
|
||||||
<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
|
<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
|
||||||
<DataGrid x:Name="commitDataGrid"
|
<DataGrid x:Name="commitDataGrid"
|
||||||
|
@ -134,7 +134,8 @@
|
||||||
<GridSplitter Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
|
<GridSplitter Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
|
||||||
MinWidth="1" MinHeight="1"
|
MinWidth="1" MinHeight="1"
|
||||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource Brush.Border0}"/>
|
Background="{DynamicResource Brush.Window}"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
|
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
|
||||||
<Border Background="{DynamicResource Brush.Window}">
|
<Border Background="{DynamicResource Brush.Window}">
|
||||||
|
|
|
@ -44,6 +44,8 @@ namespace SourceGit.Views
|
||||||
child.SetValue(RowSpanProperty, rowSpan);
|
child.SetValue(RowSpanProperty, rowSpan);
|
||||||
child.SetValue(ColumnProperty, i);
|
child.SetValue(ColumnProperty, i);
|
||||||
child.SetValue(ColumnSpanProperty, 1);
|
child.SetValue(ColumnSpanProperty, 1);
|
||||||
|
|
||||||
|
if (child is GridSplitter splitter) splitter.BorderThickness = new Thickness(1, 0, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -56,6 +58,8 @@ namespace SourceGit.Views
|
||||||
child.SetValue(RowSpanProperty, 1);
|
child.SetValue(RowSpanProperty, 1);
|
||||||
child.SetValue(ColumnProperty, 0);
|
child.SetValue(ColumnProperty, 0);
|
||||||
child.SetValue(ColumnSpanProperty, colSpan);
|
child.SetValue(ColumnSpanProperty, colSpan);
|
||||||
|
|
||||||
|
if (child is GridSplitter splitter) splitter.BorderThickness = new Thickness(0, 1, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<Grid Grid.Row="1">
|
<Grid Grid.Row="1">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="250" MinWidth="200" MaxWidth="400"/>
|
<ColumnDefinition Width="250" MinWidth="200" MaxWidth="400"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="3"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -441,10 +441,13 @@
|
||||||
IsVisible="{Binding SearchedCommits.Count, Converter={x:Static c:IntConverters.IsZero}}"/>
|
IsVisible="{Binding SearchedCommits.Count, Converter={x:Static c:IntConverters.IsZero}}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<!-- Splitter -->
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource Brush.Border0}"/>
|
Background="Transparent"
|
||||||
|
BorderThickness="0,0,1,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<!-- Right -->
|
<!-- Right -->
|
||||||
<Grid Grid.Column="2" RowDefinitions="Auto,*">
|
<Grid Grid.Column="2" RowDefinitions="Auto,*">
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<Grid Grid.Row="1">
|
<Grid Grid.Row="1">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="4"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -191,11 +191,11 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="Transparent"/>
|
Background="Transparent"/>
|
||||||
|
|
||||||
<Grid Grid.Column="2" Margin="4,0,0,0">
|
<Grid Grid.Column="2">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
||||||
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
<ColumnDefinition Width="256" MinWidth="200" MaxWidth="480"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="4"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -67,12 +67,12 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="Transparent"/>
|
Background="Transparent"/>
|
||||||
|
|
||||||
<!-- File Content Viewer -->
|
<!-- File Content Viewer -->
|
||||||
<Grid Grid.Column="2" Margin="4,0,0,0">
|
<Grid Grid.Column="2">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
<ContentControl Content="{Binding ViewRevisionFileContent}">
|
<ContentControl Content="{Binding ViewRevisionFileContent}">
|
||||||
<ContentControl.DataTemplates>
|
<ContentControl.DataTemplates>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="300" MinWidth="300"/>
|
<ColumnDefinition Width="300" MinWidth="300"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="4"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -122,12 +122,14 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth=".5"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource Brush.Border0}"/>
|
Background="Transparent"
|
||||||
|
BorderThickness="1,0,0,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<!-- Right -->
|
<!-- Right -->
|
||||||
<Grid Grid.Column="2" Margin="4">
|
<Grid Grid.Column="2" Margin="0,4,4,4">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
||||||
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
<Path Width="64" Height="64" Data="{StaticResource Icons.Diff}" Fill="{DynamicResource Brush.FG2}"/>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="300" MinWidth="300"/>
|
<ColumnDefinition Width="300" MinWidth="300"/>
|
||||||
<ColumnDefinition Width="1"/>
|
<ColumnDefinition Width="5"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
@ -292,12 +292,14 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1"
|
<GridSplitter Grid.Column="1"
|
||||||
Width="1" MinWidth=".5"
|
MinWidth="1"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource Brush.Border0}"/>
|
Background="Transparent"
|
||||||
|
BorderThickness="1,0,0,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<!-- Right -->
|
<!-- Right -->
|
||||||
<Grid Grid.Column="2" Margin="4" RowDefinitions="*,Auto,32">
|
<Grid Grid.Column="2" Margin="0,4,4,4" RowDefinitions="*,Auto,32">
|
||||||
<!-- Select Change Detail -->
|
<!-- Select Change Detail -->
|
||||||
<Grid Grid.Row="0">
|
<Grid Grid.Row="0">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
|
|
Loading…
Reference in a new issue