Skip to content

Commit 943a4eb

Browse files
committed
code_review: PR #1556
New layout for interactive rebase window Signed-off-by: leo <[email protected]>
1 parent a21d4fd commit 943a4eb

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/Views/InteractiveRebase.axaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Title="{DynamicResource Text.InteractiveRebase}"
1515
Width="1080" Height="720"
1616
WindowStartupLocation="CenterOwner">
17-
<Grid RowDefinitions="Auto,Auto,*,Auto">
17+
<Grid RowDefinitions="Auto,Auto,*,Auto,Auto">
1818
<!-- TitleBar -->
1919
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
2020
<Border Background="{DynamicResource Brush.TitleBar}"
@@ -38,7 +38,7 @@
3838
</Grid>
3939

4040
<!-- Operation Information -->
41-
<Grid Grid.Row="1" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*" Margin="8">
41+
<Grid Grid.Row="1" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,*" Margin="8">
4242
<TextBlock Grid.Column="0" Text="{DynamicResource Text.InteractiveRebase.Target}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/>
4343
<Path Grid.Column="1" Width="14" Height="14" Margin="8,0,0,0" Data="{StaticResource Icons.Branch}"/>
4444
<TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding Current.FriendlyName}" Margin="8,0,0,0"/>
@@ -47,8 +47,6 @@
4747
<Path Grid.Column="4" Width="14" Height="14" Margin="8,0,0,0" Data="{StaticResource Icons.Commit}"/>
4848
<TextBlock Grid.Column="5" Classes="primary" VerticalAlignment="Center" Text="{Binding On.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange" Margin="8,0,0,0"/>
4949
<TextBlock Grid.Column="6" VerticalAlignment="Center" Text="{Binding On.Subject}" Margin="4,0,0,0" TextTrimming="CharacterEllipsis"/>
50-
51-
<CheckBox Grid.Column="7" Content="{DynamicResource Text.InteractiveRebase.AutoStash}" IsChecked="{Binding AutoStash, Mode=TwoWay}" Margin="16,0,0,0"/>
5250
</Grid>
5351

5452
<!-- Body -->
@@ -198,16 +196,22 @@
198196

199197
<!-- Options -->
200198
<Grid Grid.Row="3" ColumnDefinitions="*,Auto,Auto" Margin="8,0,8,8">
201-
<ProgressBar x:Name="Running"
202-
Grid.Column="0"
203-
Margin="0,0,32,0"
204-
Background="{DynamicResource Brush.FG2}"
205-
Foreground="{DynamicResource Brush.Accent}"
206-
Minimum="0"
207-
Maximum="100"
208-
IsVisible="False"/>
199+
<CheckBox Grid.Column="0"
200+
Content="{DynamicResource Text.InteractiveRebase.AutoStash}"
201+
VerticalAlignment="Center"
202+
IsChecked="{Binding AutoStash, Mode=TwoWay}"/>
209203
<Button Grid.Column="1" Classes="flat primary" MinWidth="80" Content="{DynamicResource Text.Start}" Click="OnStartJobs"/>
210204
<Button Grid.Column="2" Classes="flat" Margin="8,0,0,0" MinWidth="80" Content="{DynamicResource Text.Cancel}" Click="CloseWindow"/>
211205
</Grid>
206+
207+
<!-- Progress -->
208+
<ProgressBar x:Name="Running"
209+
Grid.Row="4"
210+
Margin="8,0,8,12"
211+
Background="{DynamicResource Brush.FG2}"
212+
Foreground="{DynamicResource Brush.Accent}"
213+
Minimum="0"
214+
Maximum="100"
215+
IsVisible="False"/>
212216
</Grid>
213217
</v:ChromelessWindow>

0 commit comments

Comments
 (0)