Style line counter

This commit is contained in:
Bernat Borràs Civil 2025-01-14 18:23:04 +01:00
parent 156bb31831
commit 399bd2f12b

View file

@ -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>