|
20 | 20 | <Grid Grid.Column="0" RowDefinitions="28,*,28,*"> |
21 | 21 | <!-- Unstaged Toolbar --> |
22 | 22 | <Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
23 | | - <Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto,Auto,Auto,Auto"> |
| 23 | + <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto,Auto"> |
24 | 24 | <v:ChangeViewModeSwitcher Grid.Column="0" Width="14" Height="14" Margin="8,0,0,0" ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=UnstagedChangeViewMode, Mode=TwoWay}"/> |
25 | 25 | <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Unstaged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
26 | | - <Path Grid.Column="2" Classes="rotating" Width="14" Height="14" Data="{StaticResource Icons.Loading}" Margin="8,0,0,0" IsVisible="{Binding IsStaging}"/> |
| 26 | + <TextBlock Grid.Column="2" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Unstaged, Converter={x:Static c:ListConverters.ToCount}}"/> |
| 27 | + <Path Grid.Column="3" Classes="rotating" Width="14" Height="14" Data="{StaticResource Icons.Loading}" Margin="8,0,0,0" IsVisible="{Binding IsStaging}"/> |
27 | 28 |
|
28 | | - <Button Grid.Column="4" |
| 29 | + <Button Grid.Column="5" |
29 | 30 | Classes="icon_button" |
30 | 31 | Width="26" Height="14" |
31 | 32 | Padding="0" |
32 | 33 | ToolTip.Tip="{DynamicResource Text.WorkingCopy.Unstaged.ViewAssumeUnchaged}" |
33 | 34 | Click="ViewAssumeUnchanged"> |
34 | 35 | <Path Width="14" Height="14" Data="{StaticResource Icons.File.Ignore}"/> |
35 | 36 | </Button> |
36 | | - <ToggleButton Grid.Column="5" |
| 37 | + <ToggleButton Grid.Column="6" |
37 | 38 | Classes="toggle_untracked" |
38 | 39 | Width="26" Height="14" |
39 | 40 | ToolTip.Tip="{DynamicResource Text.WorkingCopy.IncludeUntracked}" |
40 | 41 | IsChecked="{Binding $parent[v:Repository].DataContext.(vm:Repository).IncludeUntracked, Mode=TwoWay}"/> |
41 | | - <Button Grid.Column="6" |
| 42 | + <Button Grid.Column="7" |
42 | 43 | Classes="icon_button" |
43 | 44 | Width="26" Height="14" |
44 | 45 | Padding="0" |
45 | 46 | ToolTip.Tip="{DynamicResource Text.WorkingCopy.Unstaged.Stage}" Click="StageSelected"> |
46 | 47 | <Path Width="14" Height="14" Margin="0,6,0,0" Data="{StaticResource Icons.Down}"/> |
47 | 48 | </Button> |
48 | | - <Button Grid.Column="7" |
| 49 | + <Button Grid.Column="8" |
49 | 50 | Classes="icon_button" |
50 | 51 | Width="26" Height="14" |
51 | 52 | Padding="0" |
|
167 | 168 |
|
168 | 169 | <!-- Staged Toolbar --> |
169 | 170 | <Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
170 | | - <Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto,Auto"> |
| 171 | + <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto"> |
171 | 172 | <v:ChangeViewModeSwitcher Grid.Column="0" Width="14" Height="14" Margin="8,0,0,0" ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode, Mode=TwoWay}"/> |
172 | 173 | <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Staged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
173 | | - <Path Grid.Column="2" Classes="rotating" Width="14" Height="14" Data="{StaticResource Icons.Loading}" Margin="8,0,0,0" IsVisible="{Binding IsUnstaging}"/> |
174 | | - <Button Grid.Column="4" Classes="icon_button" Width="26" Height="14" Padding="0" ToolTip.Tip="{DynamicResource Text.WorkingCopy.Staged.Unstage}" Click="UnstageSelected"> |
| 174 | + <TextBlock Grid.Column="2" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Staged, Converter={x:Static c:ListConverters.ToCount}}"/> |
| 175 | + <Path Grid.Column="3" Classes="rotating" Width="14" Height="14" Data="{StaticResource Icons.Loading}" Margin="8,0,0,0" IsVisible="{Binding IsUnstaging}"/> |
| 176 | + <Button Grid.Column="5" Classes="icon_button" Width="26" Height="14" Padding="0" ToolTip.Tip="{DynamicResource Text.WorkingCopy.Staged.Unstage}" Click="UnstageSelected"> |
175 | 177 | <Path Width="14" Height="14" Margin="0,6,0,0" Data="{StaticResource Icons.Up}"/> |
176 | 178 | </Button> |
177 | | - <Button Grid.Column="5" Classes="icon_button" Width="26" Height="14" Padding="0" ToolTip.Tip="{DynamicResource Text.WorkingCopy.Staged.UnstageAll}" Click="UnstageAll"> |
| 179 | + <Button Grid.Column="6" Classes="icon_button" Width="26" Height="14" Padding="0" ToolTip.Tip="{DynamicResource Text.WorkingCopy.Staged.UnstageAll}" Click="UnstageAll"> |
178 | 180 | <Path Width="14" Height="14" Data="{StaticResource Icons.DoubleUp}"/> |
179 | 181 | </Button> |
180 | 182 | </Grid> |
|
0 commit comments