|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:m="using:SourceGit.Models" |
| 6 | + xmlns:vm="using:SourceGit.ViewModels" |
| 7 | + xmlns:c="using:SourceGit.Converters" |
| 8 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 9 | + x:Class="SourceGit.Views.DropHead" |
| 10 | + x:DataType="vm:DropHead"> |
| 11 | + <StackPanel Orientation="Vertical" Margin="8,0"> |
| 12 | + <TextBlock FontSize="18" |
| 13 | + Classes="bold" |
| 14 | + Text="{DynamicResource Text.DropHead}"/> |
| 15 | + <Grid Margin="0,16,0,0" RowDefinitions="32,24" ColumnDefinitions="140,*"> |
| 16 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 17 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 18 | + Margin="0,0,8,0" |
| 19 | + Text="{DynamicResource Text.DropHead.Commit}"/> |
| 20 | + <Grid Grid.Row="0" Grid.Column="1" ColumnDefinitions="Auto,Auto,*" Height="20" VerticalAlignment="Center"> |
| 21 | + <Path Grid.Column="0" Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Commit}"/> |
| 22 | + <TextBlock Grid.Column="1" Classes="primary" Text="{Binding Target.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange"/> |
| 23 | + <TextBlock Grid.Column="2" Text="{Binding Target.Subject}" Margin="8,0,0,0" TextTrimming="CharacterEllipsis"/> |
| 24 | + </Grid> |
| 25 | + |
| 26 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 27 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 28 | + Margin="0,0,8,0" |
| 29 | + Text="{DynamicResource Text.DropHead.NewHead}"/> |
| 30 | + <Grid Grid.Row="1" Grid.Column="1" ColumnDefinitions="Auto,Auto,*" Height="20" VerticalAlignment="Center"> |
| 31 | + <Path Grid.Column="0" Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Commit}"/> |
| 32 | + <TextBlock Grid.Column="1" Classes="primary" Text="{Binding NewHead.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange"/> |
| 33 | + <TextBlock Grid.Column="2" Text="{Binding NewHead.Subject}" Margin="8,0,0,0" TextTrimming="CharacterEllipsis"/> |
| 34 | + </Grid> |
| 35 | + </Grid> |
| 36 | + </StackPanel> |
| 37 | +</UserControl> |
0 commit comments