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:DataType="local:LinesChanged">
|
||||
<StackPanel Orientation="Horizontal" Height="24">
|
||||
<TextBlock Margin="12,0,4,0" VerticalAlignment="Center">
|
||||
<TextBlock.Inlines>
|
||||
<Run Text="++"/>
|
||||
<Run Text="{Binding AddedLines}"/>
|
||||
</TextBlock.Inlines>
|
||||
</TextBlock>
|
||||
<Border Margin="12,0,4,0" VerticalAlignment="Center" BorderBrush="Green" BorderThickness="1" CornerRadius="6">
|
||||
<TextBlock VerticalAlignment="Center" Foreground="Green" Padding="3,0">
|
||||
<TextBlock.Inlines>
|
||||
<Run Text="+"/>
|
||||
<Run Text="{Binding AddedLines}"/>
|
||||
</TextBlock.Inlines>
|
||||
</TextBlock>
|
||||
</Border>
|
||||
|
||||
<TextBlock Margin="12,0,4,0" VerticalAlignment="Center">
|
||||
<TextBlock.Inlines>
|
||||
<Run Text="--"/>
|
||||
<Run Text="{Binding RemovedLines}"/>
|
||||
</TextBlock.Inlines>
|
||||
</TextBlock>
|
||||
<Border Margin="12,0,4,0" VerticalAlignment="Center" BorderBrush="Red" BorderThickness="1" CornerRadius="6">
|
||||
<TextBlock VerticalAlignment="Center" Foreground="Red" Padding="3,0">
|
||||
<TextBlock.Inlines>
|
||||
<Run Text="-"/>
|
||||
<Run Text="{Binding RemovedLines}"/>
|
||||
</TextBlock.Inlines>
|
||||
</TextBlock>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
|
|
Loading…
Reference in a new issue