mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-23 01:36:57 -08:00
Style line counter
This commit is contained in:
parent
156bb31831
commit
399bd2f12b
1 changed files with 16 additions and 12 deletions
|
@ -5,18 +5,22 @@
|
||||||
x:Name="ThisControl"
|
x:Name="ThisControl"
|
||||||
x:DataType="local:LinesChanged">
|
x:DataType="local:LinesChanged">
|
||||||
<StackPanel Orientation="Horizontal" Height="24">
|
<StackPanel Orientation="Horizontal" Height="24">
|
||||||
<TextBlock Margin="12,0,4,0" VerticalAlignment="Center">
|
<Border Margin="12,0,4,0" VerticalAlignment="Center" BorderBrush="Green" BorderThickness="1" CornerRadius="6">
|
||||||
<TextBlock.Inlines>
|
<TextBlock VerticalAlignment="Center" Foreground="Green" Padding="3,0">
|
||||||
<Run Text="++"/>
|
<TextBlock.Inlines>
|
||||||
<Run Text="{Binding AddedLines}"/>
|
<Run Text="+"/>
|
||||||
</TextBlock.Inlines>
|
<Run Text="{Binding AddedLines}"/>
|
||||||
</TextBlock>
|
</TextBlock.Inlines>
|
||||||
|
</TextBlock>
|
||||||
|
</Border>
|
||||||
|
|
||||||
<TextBlock Margin="12,0,4,0" VerticalAlignment="Center">
|
<Border Margin="12,0,4,0" VerticalAlignment="Center" BorderBrush="Red" BorderThickness="1" CornerRadius="6">
|
||||||
<TextBlock.Inlines>
|
<TextBlock VerticalAlignment="Center" Foreground="Red" Padding="3,0">
|
||||||
<Run Text="--"/>
|
<TextBlock.Inlines>
|
||||||
<Run Text="{Binding RemovedLines}"/>
|
<Run Text="-"/>
|
||||||
</TextBlock.Inlines>
|
<Run Text="{Binding RemovedLines}"/>
|
||||||
</TextBlock>
|
</TextBlock.Inlines>
|
||||||
|
</TextBlock>
|
||||||
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
Loading…
Reference in a new issue