2021-04-29 05:05:55 -07:00
|
|
|
<controls:PopupWidget
|
|
|
|
x:Class="SourceGit.Views.Popups.Reset"
|
|
|
|
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:models="clr-namespace:SourceGit.Models"
|
|
|
|
mc:Ignorable="d"
|
2021-05-12 20:02:50 -07:00
|
|
|
d:DesignWidth="500">
|
2021-04-29 05:05:55 -07:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="32"/>
|
|
|
|
<RowDefinition Height="32"/>
|
|
|
|
<RowDefinition Height="32"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="150"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="0" Grid.Column="0"
|
|
|
|
Margin="0,0,8,0"
|
2021-07-20 01:26:10 -07:00
|
|
|
Text="{DynamicResource Text.Reset.Target}"
|
2021-04-29 05:05:55 -07:00
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="0" Grid.Column="1"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icon.Branch}"/>
|
2021-08-05 20:25:06 -07:00
|
|
|
<TextBlock x:Name="txtCurrent" Margin="4,0,0,0"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
|
Margin="0,0,8,0"
|
2021-07-20 01:26:10 -07:00
|
|
|
Text="{DynamicResource Text.Reset.MoveTo}"
|
2021-04-29 05:05:55 -07:00
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="1" Grid.Column="1"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icon.Commit}"/>
|
2021-08-05 18:50:43 -07:00
|
|
|
<Border Background="{DynamicResource Brush.Badge}" Margin="4,0,0,0" Padding="4,2" CornerRadius="4">
|
|
|
|
<TextBlock x:Name="txtSHA"/>
|
|
|
|
</Border>
|
|
|
|
<TextBlock x:Name="txtMoveTo" Margin="4,0,0,0"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="2" Grid.Column="0"
|
|
|
|
Margin="0,0,8,0"
|
2021-07-20 01:26:10 -07:00
|
|
|
Text="{DynamicResource Text.Reset.Mode}"
|
2021-04-29 05:05:55 -07:00
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
<ComboBox
|
|
|
|
Grid.Row="2" Grid.Column="1"
|
|
|
|
x:Name="cmbMode"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:ResetMode.Supported}}"
|
|
|
|
SelectedIndex="0"
|
|
|
|
Height="24"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2021-08-05 20:56:50 -07:00
|
|
|
<Grid Height="20">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="20"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Path Grid.Column="0" Width="12" Height="12" Fill="{Binding Color}" Data="M 0,0 A 180,180 180 1 1 1,1 Z"/>
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" Margin="4,0,0,0"/>
|
2021-08-10 01:55:01 -07:00
|
|
|
<TextBlock Grid.Column="2" Text="{Binding Desc}" FontSize="11" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Right"/>
|
2021-08-05 20:56:50 -07:00
|
|
|
</Grid>
|
2021-04-29 05:05:55 -07:00
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</Grid>
|
|
|
|
</controls:PopupWidget>
|