mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style<Statistics>: change layout of Statistics
This commit is contained in:
parent
ae02e1025e
commit
ad9cf615ab
2 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<!-- View mode switcher -->
|
<!-- View mode switcher -->
|
||||||
<ListBox Grid.Row="1"
|
<ListBox Grid.Row="1"
|
||||||
Margin="0,8,0,0"
|
Margin="0,8"
|
||||||
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
|
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
<ContentControl Grid.Row="2" Content="{Binding SelectedReport, Mode=OneWay}">
|
<ContentControl Grid.Row="2" Content="{Binding SelectedReport, Mode=OneWay}">
|
||||||
<ContentControl.DataTemplates>
|
<ContentControl.DataTemplates>
|
||||||
<DataTemplate DataType="m:StatisticsReport">
|
<DataTemplate DataType="m:StatisticsReport">
|
||||||
<Grid RowDefinitions="*,32" ColumnDefinitions="Auto,*" Margin="8">
|
<Grid RowDefinitions="*,32" ColumnDefinitions="256,*" Margin="8">
|
||||||
<!-- Table By Committer -->
|
<!-- Table By Committer -->
|
||||||
<DataGrid Grid.Row="0" Grid.Column="0"
|
<DataGrid Grid.Row="0" Grid.Column="0"
|
||||||
ItemsSource="{Binding ByCommitter}"
|
ItemsSource="{Binding ByCommitter}"
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
VerticalScrollBarVisibility="Auto">
|
VerticalScrollBarVisibility="Auto">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTextColumn Width="150" Header="{DynamicResource Text.Statistics.Committer}" Binding="{Binding Name}"/>
|
<DataGridTextColumn Width="150" Header="{DynamicResource Text.Statistics.Committer}" Binding="{Binding Name}"/>
|
||||||
<DataGridTextColumn Width="100" Header="{DynamicResource Text.Statistics.CommitAmount}" Binding="{Binding Count}"/>
|
<DataGridTextColumn Width="*" Header="{DynamicResource Text.Statistics.CommitAmount}" Binding="{Binding Count}"/>
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
|
|
||||||
<!-- Loading Mask -->
|
<!-- Loading Mask -->
|
||||||
<Path Grid.Row="1"
|
<Path Grid.Row="2"
|
||||||
Classes="rotating"
|
Classes="rotating"
|
||||||
Width="48" Height="48"
|
Width="48" Height="48"
|
||||||
Data="{DynamicResource Icons.Loading}"
|
Data="{DynamicResource Icons.Loading}"
|
||||||
|
|
|
@ -78,7 +78,7 @@ namespace SourceGit.Views {
|
||||||
// Draw coordinate
|
// Draw coordinate
|
||||||
var maxLabel = new FormattedText($"{maxV}", CultureInfo.CurrentCulture, FlowDirection.LeftToRight, typeface, 12.0, LineBrush);
|
var maxLabel = new FormattedText($"{maxV}", CultureInfo.CurrentCulture, FlowDirection.LeftToRight, typeface, 12.0, LineBrush);
|
||||||
var horizonStart = maxLabel.Width + 8;
|
var horizonStart = maxLabel.Width + 8;
|
||||||
var labelHeight = 32;
|
var labelHeight = maxLabel.Height;
|
||||||
context.DrawText(maxLabel, new Point(0, -maxLabel.Height * 0.5));
|
context.DrawText(maxLabel, new Point(0, -maxLabel.Height * 0.5));
|
||||||
context.DrawLine(pen, new Point(horizonStart, 0), new Point(horizonStart, height - labelHeight));
|
context.DrawLine(pen, new Point(horizonStart, 0), new Point(horizonStart, height - labelHeight));
|
||||||
context.DrawLine(pen, new Point(horizonStart, height - labelHeight), new Point(width, height - labelHeight));
|
context.DrawLine(pen, new Point(horizonStart, height - labelHeight), new Point(width, height - labelHeight));
|
||||||
|
|
Loading…
Reference in a new issue