mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
7070a07e15
* Only allow to start interactive rebase from merged commit in current branch * The order of commits in the interactive rebase window is as same as it's in histories page. * Unlike anthor git frontend app `Fork`, you should edit the final message on the last commit rather than the previous commit that will be meld into while squashing commits
39 lines
2.1 KiB
XML
39 lines
2.1 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
xmlns:v="using:SourceGit.Views"
|
|
xmlns:c="using:SourceGit.Converters"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="SourceGit.Views.Reword"
|
|
x:DataType="vm:Reword">
|
|
<StackPanel Orientation="Vertical" Margin="8,0">
|
|
<TextBlock FontSize="18"
|
|
Classes="bold"
|
|
Text="{DynamicResource Text.Reword}"/>
|
|
<Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32" ColumnDefinitions="100,*">
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
Margin="0,0,8,0"
|
|
Text="{DynamicResource Text.Reword.On}"/>
|
|
<Grid Grid.Row="0" Grid.Column="1" ColumnDefinitions="Auto,Auto,*" Height="20" VerticalAlignment="Center">
|
|
<Path Grid.Column="0" Margin="0,6,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Commit}"/>
|
|
<TextBlock Grid.Column="1" Text="{Binding Head.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange"/>
|
|
<TextBlock Grid.Column="2" Text="{Binding Head.Subject}" Margin="8,0,0,0" TextTrimming="CharacterEllipsis"/>
|
|
</Grid>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
Margin="0,0,8,0"
|
|
Text="{DynamicResource Text.Reword.Message}"/>
|
|
<TextBox Grid.Row="1" Grid.RowSpan="3" Grid.Column="1"
|
|
Margin="0,4,0,0"
|
|
CornerRadius="2"
|
|
AcceptsReturn="True"
|
|
VerticalContentAlignment="Top"
|
|
Text="{Binding Message, Mode=TwoWay}"
|
|
v:AutoFocusBehaviour.IsEnabled="True"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</UserControl>
|