sourcegit/src/Views/Widgets/RevisionCompare.xaml

110 lines
4.7 KiB
Text
Raw Normal View History

2021-04-29 05:05:55 -07:00
<UserControl x:Class="SourceGit.Views.Widgets.RevisionCompare"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
xmlns:widgets="clr-namespace:SourceGit.Views.Widgets"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid Margin="4,8,4,4">
<Grid.RowDefinitions>
<RowDefinition Height="44"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
2021-04-29 05:05:55 -07:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="*"/>
2021-04-29 05:05:55 -07:00
<ColumnDefinition Width="48"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="80"/>
2021-04-29 05:05:55 -07:00
</Grid.ColumnDefinitions>
<Border
Grid.Column="1"
BorderBrush="{DynamicResource Brush.Border2}"
2021-04-29 05:05:55 -07:00
BorderThickness="1"
Background="{DynamicResource Brush.Contents}"
2021-04-29 05:05:55 -07:00
CornerRadius="4">
<Grid Margin="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<controls:Avatar Grid.Column="0" Width="32" Height="32" x:Name="avatarStart"/>
<Grid Grid.Column="1" Margin="8,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
2021-08-04 22:44:25 -07:00
<Grid Grid.Row="0">
2021-04-29 05:05:55 -07:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" x:Name="txtStartSHA" Foreground="DarkOrange"/>
<TextBlock Grid.Column="1" x:Name="txtStartTime" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Right"/>
2021-04-29 05:05:55 -07:00
</Grid>
2021-08-04 22:44:25 -07:00
<TextBlock Grid.Row="1" x:Name="txtStartSubject" FontSize="10pt" VerticalAlignment="Bottom"/>
2021-04-29 05:05:55 -07:00
</Grid>
</Grid>
</Border>
<Path
Grid.Column="2"
2021-04-29 05:05:55 -07:00
Width="16" Height="16"
Fill="{DynamicResource Brush.FG2}"
2021-04-29 05:05:55 -07:00
Data="{StaticResource Icon.Down}"
RenderTransformOrigin=".5,.5">
<Path.RenderTransform>
<RotateTransform Angle="270"/>
</Path.RenderTransform>
</Path>
<Border
Grid.Column="3"
BorderBrush="{DynamicResource Brush.Border2}"
2021-04-29 05:05:55 -07:00
BorderThickness="1"
Background="{DynamicResource Brush.Contents}"
2021-04-29 05:05:55 -07:00
CornerRadius="4">
<Grid Margin="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<controls:Avatar Grid.Column="0" Width="32" Height="32" x:Name="avatarEnd"/>
<Grid Grid.Column="1" Margin="8,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
2021-08-04 22:44:25 -07:00
<Grid Grid.Row="0">
2021-04-29 05:05:55 -07:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" x:Name="txtEndSHA" Foreground="DarkOrange"/>
<TextBlock Grid.Column="1" x:Name="txtEndTime" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Right"/>
2021-04-29 05:05:55 -07:00
</Grid>
2021-08-04 22:44:25 -07:00
<TextBlock Grid.Row="1" x:Name="txtEndSubject" FontSize="10pt" VerticalAlignment="Bottom"/>
2021-04-29 05:05:55 -07:00
</Grid>
</Grid>
</Border>
</Grid>
<widgets:CommitChanges Grid.Row="1" x:Name="changesContainer" Margin="0,8,0,0"/>
</Grid>
</UserControl>