|
18 | 18 | <!-- Left --> |
19 | 19 | <Grid Grid.Column="0"> |
20 | 20 | <Grid.RowDefinitions> |
21 | | - <RowDefinition Height="36"/> |
| 21 | + <RowDefinition Height="36" MinHeight="36" MaxHeight="36"/> |
22 | 22 | <RowDefinition Height="*" MinHeight="100"/> |
23 | 23 | <RowDefinition Height="1"/> |
24 | 24 | <RowDefinition Height="*" MinHeight="100"/> |
| 25 | + <RowDefinition Height="40" MinHeight="40" MaxHeight="40"/> |
25 | 26 | </Grid.RowDefinitions> |
26 | 27 |
|
27 | 28 | <!-- Search Filter --> |
28 | 29 | <Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
29 | | - <Grid ColumnDefinitions="*,Auto"> |
30 | | - <TextBox Grid.Column="0" |
31 | | - x:Name="LocalChangesSearchBox" |
32 | | - Height="24" |
33 | | - Margin="4,0" |
34 | | - BorderThickness="1" |
35 | | - CornerRadius="12" |
36 | | - Text="{Binding Filter, Mode=TwoWay}" |
37 | | - BorderBrush="{DynamicResource Brush.Border2}" |
38 | | - Watermark="{DynamicResource Text.WorkingCopy.FilterChanges}" |
39 | | - VerticalContentAlignment="Center"> |
40 | | - <TextBox.InnerLeftContent> |
| 30 | + <TextBox x:Name="LocalChangesSearchBox" |
| 31 | + Height="24" |
| 32 | + Margin="4,0" |
| 33 | + BorderThickness="1" |
| 34 | + CornerRadius="12" |
| 35 | + Text="{Binding Filter, Mode=TwoWay}" |
| 36 | + BorderBrush="{DynamicResource Brush.Border2}" |
| 37 | + Watermark="{DynamicResource Text.WorkingCopy.FilterChanges}" |
| 38 | + VerticalContentAlignment="Center"> |
| 39 | + <TextBox.InnerLeftContent> |
| 40 | + <Path Width="14" Height="14" |
| 41 | + Margin="6,0,0,0" |
| 42 | + Fill="{DynamicResource Brush.FG2}" |
| 43 | + Data="{StaticResource Icons.Search}"/> |
| 44 | + </TextBox.InnerLeftContent> |
| 45 | + |
| 46 | + <TextBox.InnerRightContent> |
| 47 | + <Button Classes="icon_button" |
| 48 | + Width="16" |
| 49 | + Margin="0,0,6,0" |
| 50 | + Command="{Binding ClearFilter}" |
| 51 | + IsVisible="{Binding Filter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" |
| 52 | + HorizontalAlignment="Right"> |
41 | 53 | <Path Width="14" Height="14" |
42 | | - Margin="6,0,0,0" |
43 | | - Fill="{DynamicResource Brush.FG2}" |
44 | | - Data="{StaticResource Icons.Search}"/> |
45 | | - </TextBox.InnerLeftContent> |
46 | | - |
47 | | - <TextBox.InnerRightContent> |
48 | | - <Button Classes="icon_button" |
49 | | - Width="16" |
50 | | - Margin="0,0,6,0" |
51 | | - Command="{Binding ClearFilter}" |
52 | | - IsVisible="{Binding Filter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" |
53 | | - HorizontalAlignment="Right"> |
54 | | - <Path Width="14" Height="14" |
55 | | - Margin="0,1,0,0" |
56 | | - Fill="{DynamicResource Brush.FG1}" |
57 | | - Data="{StaticResource Icons.Clear}"/> |
58 | | - </Button> |
59 | | - </TextBox.InnerRightContent> |
60 | | - </TextBox> |
61 | | - |
62 | | - <Button Grid.Column="1" |
63 | | - Classes="icon_button" |
64 | | - Width="26" Height="26" |
65 | | - Command="{Binding DiscardAllChanges}" |
66 | | - ToolTip.Tip="{DynamicResource Text.Repository.DiscardAll}"> |
67 | | - <Path Width="13" Height="13" Margin="0,1,0,0" Data="{StaticResource Icons.Undo}"/> |
68 | | - </Button> |
69 | | - </Grid> |
| 54 | + Margin="0,1,0,0" |
| 55 | + Fill="{DynamicResource Brush.FG1}" |
| 56 | + Data="{StaticResource Icons.Clear}"/> |
| 57 | + </Button> |
| 58 | + </TextBox.InnerRightContent> |
| 59 | + </TextBox> |
70 | 60 | </Border> |
71 | 61 |
|
72 | 62 | <!-- Unstaged --> |
|
203 | 193 | ChangeDoubleTapped="OnStagedChangeDoubleTapped" |
204 | 194 | KeyDown="OnStagedKeyDown"/> |
205 | 195 | </Grid> |
| 196 | + |
| 197 | + <!-- Bottom --> |
| 198 | + <Border Grid.Row="4" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource Brush.Border0}"> |
| 199 | + <Button Classes="flat" |
| 200 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 201 | + Content="{DynamicResource Text.WorkingCopy.DiscardAll}" |
| 202 | + Command="{Binding DiscardAllChanges}"/> |
| 203 | + </Border> |
206 | 204 | </Grid> |
207 | 205 |
|
208 | 206 | <GridSplitter Grid.Column="1" |
|
0 commit comments